Skip to content

Add PrimaryConstructorLastRule to enforce constructor ordering#1332

Open
Dema-koder wants to merge 6 commits intoyegor256:masterfrom
Dema-koder:primary-ctor-last
Open

Add PrimaryConstructorLastRule to enforce constructor ordering#1332
Dema-koder wants to merge 6 commits intoyegor256:masterfrom
Dema-koder:primary-ctor-last

Conversation

@Dema-koder
Copy link
Copy Markdown
Contributor

This follows the convention that constructors should be ordered from least to most parameters, with the primary constructor last.

- Implement rule checking primary constructor is placed last
- Primary constructor is the one with most parameters
- Improve code organization and readability
- Fix issue yegor256#1326

This follows the convention that constructors should be ordered
from least to most parameters, with the primary constructor last.
@yegor256
Copy link
Copy Markdown
Owner

@Dema-koder thanks for your contribution! The build doesn't pass, does it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants