Files
allwpilib/shared/java/javastyle.gradle

18 lines
426 B
Groovy
Raw Normal View History

2018-06-03 10:00:53 -07:00
apply plugin: 'checkstyle'
apply plugin: 'pmd'
checkstyle {
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
}
pmd {
toolVersion = '6.7.0'
2018-06-03 10:00:53 -07:00
consoleOutput = true
reportsDir = file("$project.buildDir/reports/pmd")
ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml"))
ruleSets = []
}