Android lint rule for phabricator arcanist. It includes findbugs, checkstyle and pmd configurations with gradle lint.
The library is based on https://github.com/imobile3/cassowary/blob/master/libcassowary/src/lint/linter/ArcanistAndroidLinter.php but configured to work with only gradle. Also the library is extended to include findbugs, checkstyle and pmd for better results.
To work with library:
- Include
.arclib/in phputil libraries in.arcconfig(See included.arcconfigfor exmaple) - Add
.arclintto your project. Modify the same according to your requirements - If you have more than one android modules or your default module is not
app, you need to modify.arclib/lint/ArcanistAndroidLinter.phpand add your modules there inprivate $gradleModulesvariable - In the same php file you can also disable
findbugs, checkstyle and pmd. By default they're enabled - Include
app/configandapp/gradle_scriptsin your module root - Modify
app/config/checkstyle/checkstyle.xmlaccording to your own taste. Same goes with every other configuration file listed inapp/config - Edit your
app/build.gradleand include these lines as per your requirementsapply from: 'gradle_scripts/checkstyle.gradleapply from: 'gradle_scripts/checkstyle.gradle'apply from: 'gradle_scripts/pmd.gradle'