Enforce android coding style with checkstyle
If you appreciate elegant code that is easier to read and consistent from file to file you probably want to start using checkstyle on you java projects.
If your project is a simple java project that uses gradle you can start using checkstyle by adding this to your build.gradle file:
1
apply plugin: 'checkstyle'
and creating this file under config/checkstyle/checkstyle.xml (I stole it from Marco’s example):