blob: eec3796ab933934837b15a3636cbf750d019d62a [file] [log] [blame]
Brian Silverman8fce7482020-01-05 13:18:21 -08001
2apply plugin: 'checkstyle'
3
4checkstyle {
5 toolVersion = "8.12"
6 configDirectory = file("${project.rootDir}/styleguide")
7 config = resources.text.fromFile(new File(configDirectory.get().getAsFile(), "checkstyle.xml"))
8}
9
10if (!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}