Closed colejd closed 5 years ago
@colejd You can refer to this: https://github.com/shyiko/ktlint#-with-intellij-idea
Also, all these commands are available via the command line so if you want to run the checks, the formatter or any of the other ktlint tools locally you can do so using Gradle.
As far as the rules we are using the official Android Kotlin style guide.
Okay, interesting! Thank you. There's a method outlined in ktlint's readme for configuring Android Studio's build-in formatter to produce ktlint-compatible code. Is this part of the template?
Late to respond to this but I think it's certainly something we can add.
Is it feasible to have a scheme file that matches the linting tests we automatically run on Circle? I'm not sure what specific rules we're using there, but it would be great to let the IDE catch issues instead of waiting several minutes after pushing a commit for the tests to fail in order to fix things.