blob: 1ff1c297dea8edfd07b850c08299e069dc720270 [file] [log] [blame]
Alex Volanis7004a612018-01-24 10:30:13 -05001
2// =================================================================
3// Configure the Gradle code quality plugins here.
4//
5
6apply plugin: 'findbugs'
7
8findbugs {
9 ignoreFailures = true
10 toolVersion = '3.0.1'
11 sourceSets = [ sourceSets.main ]
12 effort = 'max'
13 reportLevel = 'low'
14 excludeFilter = file('code_quality_tools/findbugs-filter.xml')
15}
16
17tasks.withType(FindBugs) {
18 reports {
19 text.enabled = false
20 html.enabled = true
21 xml.enabled = false
22 }
23}
24
25apply plugin: 'pmd'
26
27pmd {
28 ignoreFailures = true
29 toolVersion = '6.0.0'
30 sourceSets = [ sourceSets.main ]
Alex Volanis7004a612018-01-24 10:30:13 -050031 ruleSets = [ 'java-basic' ]
32}
33
34tasks.withType(Pmd) {
35 reports {
36 html.enabled = true
37 xml.enabled = false
38 }
39}