-
Notifications
You must be signed in to change notification settings - Fork 503
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
Standard modifier order? #42
Comments
Hi @swankjesse. Absolutely. Kotlin/kotlin-style-guide#3 is still open but I think it's pretty safe to add this rule to the ktlint-ruleset-standard. Thank you for pointing it out. |
Implemented in 0.7.0. Order (same as in Kotlin/kotlin-style-guide#3) is defined here. I'd appreciate if you could take a vote in #43. Cheers! |
@swankjesse one more thing - https://ktlint.github.io/ :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The official style guides are quiet about whether we should say
override public
orpublic override
.Does ktlint wanna enforce one true order?
I made up a standard order for KotlinPoet, but I’m not particular to it.
https://github.com/square/kotlinpoet/blob/master/src/main/java/com/squareup/kotlinpoet/KModifier.kt
The text was updated successfully, but these errors were encountered: