blob: 6e4e2611ad53ed254abe854c2c611fd9e3fe72ed [file] [log] [blame]
Brian Silverman41cdd3e2019-01-19 19:48:58 -08001
2apply plugin: 'checkstyle'
Brian Silverman41cdd3e2019-01-19 19:48:58 -08003
4checkstyle {
5 toolVersion = "8.12"
6 configDir = file("${project.rootDir}/styleguide")
7 config = resources.text.fromFile(new File(configDir, "checkstyle.xml"))
8}
9
James Kuszmaul4f3ad3c2019-12-01 16:35:21 -080010if (!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 }
Brian Silverman41cdd3e2019-01-19 19:48:58 -080020}