Adds a basic linter for executing checkstyle and PMD, parsing the output into lint messages. These linters were based around the existing ArcanistCppcheckLinter.php.
Closes T9886
Differential D14632
Add Java linters, checkstyle and PMD cspeckmim on Dec 2 2015, 5:53 AM. Authored by Tags None Referenced Files
Tokens
Details
Adds a basic linter for executing checkstyle and PMD, parsing the output into lint messages. These linters were based around the existing ArcanistCppcheckLinter.php. Closes T9886 Checkstyle
"checkstyle": { "type": "checkstyle", "include": "(\\.java$)", "bin": "./misc-utils/lib/jars/checkstyle-6.13-all.jar", "flags": [ "-c", "/Users/cspeckrun/Desktop/google_checks.xml" ], "checkstyle.simplify-source-classname": true }
PMD
"pmd": { "type": "pmd", "include": "(\\.java$)", "bin": "./misc-utils/lib/pmd-5.4.1/lib/pmd-core-5.4.1.jar", "flags": [ "-rulesets", "rulesets/java/unusedcode.xml", "-dir" ] }
CPD
"pmd": { "pmd.command": "cpd", "type": "pmd", "include": "(\\.java$)", "bin": "./misc-utils/lib/pmd-5.4.1/lib/pmd-core-5.4.1.jar", "flags": [ "--minimum-tokens", "5", "--files" ] }
Diff Detail
|