blob: 9572ca1779fede5f5c117ffb7c49776333d86763 [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 ]
31 targetJdk = sourceCompatibility
32 ruleSets = [ 'java-basic' ]
33}
34
35tasks.withType(Pmd) {
36 reports {
37 html.enabled = true
38 xml.enabled = false
39 }
40}