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

modifiers order #146

Closed
gmariotti opened this issue Jan 29, 2018 · 3 comments
Closed

modifiers order #146

gmariotti opened this issue Jan 29, 2018 · 3 comments

Comments

@gmariotti
Copy link

Ktlint formatting doesn't respect the suggested order for modifiers from Kotlin Coding Conventions. Specifically, instead of accepting the order tailrec suspend fun, it corrects it to suspend tailrec fun. Is this an expected behavior or something that will be updated?

@shyiko
Copy link
Collaborator

shyiko commented Jan 29, 2018

@gmariotti thank you for letting us know. https://github.com/shyiko/ktlint/blob/master/ktlint-ruleset-standard/src/main/kotlin/com/github/shyiko/ktlint/ruleset/standard/ModifierOrderRule.kt#L38 will be fixed to match official recommendation as part of the next release.

@gmariotti
Copy link
Author

@shyiko great, thanks!!

@shyiko
Copy link
Collaborator

shyiko commented Feb 27, 2018

Fixed in 0.16.0.

@shyiko shyiko closed this as completed Feb 27, 2018
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

No branches or pull requests

2 participants