Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort modifiers based on Kotlin conventions #293

Open
JavierSegoviaCordoba opened this issue Feb 23, 2022 · 1 comment
Open

Sort modifiers based on Kotlin conventions #293

JavierSegoviaCordoba opened this issue Feb 23, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@JavierSegoviaCordoba
Copy link
Contributor

When modifiers aren't in a specific order, the linter suggests to be sorted, ktfmt could sort them.

@strulovich
Copy link
Contributor

This is indeed possible, but will require an extra pass due to the way Ktfmt is structured (we can't just reorganize tokens).

There might also be some intention in the order of mixing annotations with modifiers, but I can't come up with an example of the top of my head right now.

In the meantime, we recommend using Ktfmt with other linters that fix specific issues.

@hick209 hick209 added the enhancement New feature or request label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants