Rightpoint / android-template

A `cookiecutter` template for Android projects
28 stars 4 forks source link

Add Android Studio scheme file that matches `checkstyle` test in CircleCI #51

Closed colejd closed 5 years ago

colejd commented 5 years ago

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.

jonduran3000 commented 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.

jonduran3000 commented 5 years ago

As far as the rules we are using the official Android Kotlin style guide.

colejd commented 5 years ago

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?

jonduran3000 commented 5 years ago

Late to respond to this but I think it's certainly something we can add.