Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame^] | 1 | |
| 2 | apply plugin: 'checkstyle' |
| 3 | |
| 4 | checkstyle { |
| 5 | toolVersion = "8.12" |
| 6 | configDirectory = file("${project.rootDir}/styleguide") |
| 7 | config = resources.text.fromFile(new File(configDirectory.get().getAsFile(), "checkstyle.xml")) |
| 8 | } |
| 9 | |
| 10 | if (!project.hasProperty('skipPMD')) { |
| 11 | apply plugin: 'pmd' |
| 12 | |
| 13 | pmd { |
| 14 | toolVersion = '6.7.0' |
| 15 | consoleOutput = true |
| 16 | reportsDir = file("$project.buildDir/reports/pmd") |
| 17 | ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml")) |
| 18 | ruleSets = [] |
| 19 | } |
| 20 | } |