2018-06-03 10:00:53 -07:00
|
|
|
|
|
|
|
|
apply plugin: 'checkstyle'
|
|
|
|
|
|
|
|
|
|
checkstyle {
|
2018-10-07 18:11:57 -07:00
|
|
|
toolVersion = "8.12"
|
|
|
|
|
configDir = file("${project.rootDir}/styleguide")
|
|
|
|
|
config = resources.text.fromFile(new File(configDir, "checkstyle.xml"))
|
2018-06-03 10:00:53 -07:00
|
|
|
}
|
|
|
|
|
|
2019-06-28 14:09:10 -07:00
|
|
|
if (!project.hasProperty('skipPMD')) {
|
|
|
|
|
apply plugin: 'pmd'
|
|
|
|
|
|
|
|
|
|
pmd {
|
|
|
|
|
toolVersion = '6.7.0'
|
|
|
|
|
consoleOutput = true
|
|
|
|
|
reportsDir = file("$project.buildDir/reports/pmd")
|
|
|
|
|
ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml"))
|
|
|
|
|
ruleSets = []
|
|
|
|
|
}
|
2018-06-03 10:00:53 -07:00
|
|
|
}
|