-
Notifications
You must be signed in to change notification settings - Fork 510
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
ktlint vs AS autoformat-rearrange #86
Comments
Hi @WhiteHatArpit. I have couple of rules (#23, #14 and a few more) in the works and quite a few in my personal backlog. If you are willing to help (most appreciated) you could start with relatively-easy to implement:
To get started, I'd recommend to look at ktlint-ruleset-template (NoVarRuleTest.kt) first and then ktlint-ruleset-standard. |
To start with, first there are some styles about where should a bracket come while defining a class
Then there are some unsaid rules related to ' ' space. If I put in these spaces at random spots in my code, I see different output using Ktlint and AS. Also, I would like to add some rules exclusive to my project but I am not sure how to go about them at the moment. Sure I would take a look at those files and try to understand how it all works. |
@WhiteHatArpit Thank you. #88 created to address { positioning. With regards to your personal rules - see https://github.com/shyiko/ktlint#can-i-have-my-own-rules-on-top-of-ktlint. |
There happens to be many things which the Android Studio's Reformat do but Ktlint seems helpless. What are the plans for this? Is there some way we can make them same? I would be happy to help too if you are short of bandwidth. Just point in the right direction!
The text was updated successfully, but these errors were encountered: