Brian Silverman | 41cdd3e | 2019-01-19 19:48:58 -0800 | [diff] [blame^] | 1 | |
2 | apply plugin: 'checkstyle' | ||||
3 | apply plugin: 'pmd' | ||||
4 | |||||
5 | checkstyle { | ||||
6 | toolVersion = "8.12" | ||||
7 | configDir = file("${project.rootDir}/styleguide") | ||||
8 | config = resources.text.fromFile(new File(configDir, "checkstyle.xml")) | ||||
9 | } | ||||
10 | |||||
11 | pmd { | ||||
12 | toolVersion = '6.7.0' | ||||
13 | consoleOutput = true | ||||
14 | reportsDir = file("$project.buildDir/reports/pmd") | ||||
15 | ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml")) | ||||
16 | ruleSets = [] | ||||
17 | } |