-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Maintain consistent order of imports #189
Comments
ktlint has ktlint-ruleset-standard/src/main/kotlin/com/github/shyiko/ktlint/ruleset/standard/ImportOrderingRule.kt (test) but it's disabled as it's incompatible with the way AS orders imports (not with the actual Android Koltin Style Guide, though). At least that was the case when I wrote the rule. |
Is there a way to manually enable the rule? |
Other than copy&pasting ImportOrderingRule to your own ruleset, not at the moment (unfortunately). |
@shyiko Can you describe the incompatibility you mentioned? |
This may be offtopic but I do not find a way to specify an import order :( - I can live without alphabetical order until there is some proposal how to fix it. |
@shyiko would it make sense to include disabled |
@Tapchicoma That seems totally reasonable. |
Currently imports aren't sorted at all and single empty lines within the imports aren't removed.
See https://android.github.io/kotlin-guides/style.html#import-statements
The text was updated successfully, but these errors were encountered: