blob: b06628759009c90e9a1592a430d902fcde9cd893 [file] [log] [blame]
Alex Volanis7004a612018-01-24 10:30:13 -05001
2// =================================================================
3// Configure the Gradle code quality plugins here.
4//
5
D. Can Celasun76fa8c92019-10-18 15:15:45 +01006dependencies {
7 spotbugs configurations.spotbugsPlugins.dependencies
8 spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.8.0'
9}
Alex Volanis7004a612018-01-24 10:30:13 -050010
D. Can Celasun76fa8c92019-10-18 15:15:45 +010011apply plugin: 'com.github.spotbugs'
12
13spotbugs{
Alex Volanis7004a612018-01-24 10:30:13 -050014 ignoreFailures = true
D. Can Celasun76fa8c92019-10-18 15:15:45 +010015 toolVersion = '3.1.12'
Alex Volanis7004a612018-01-24 10:30:13 -050016 sourceSets = [ sourceSets.main ]
17 effort = 'max'
18 reportLevel = 'low'
19 excludeFilter = file('code_quality_tools/findbugs-filter.xml')
20}
21
D. Can Celasun76fa8c92019-10-18 15:15:45 +010022tasks.withType(SpotBugsTask) {
Alex Volanis7004a612018-01-24 10:30:13 -050023 reports {
24 text.enabled = false
25 html.enabled = true
26 xml.enabled = false
27 }
28}
29
30apply plugin: 'pmd'
31
32pmd {
33 ignoreFailures = true
34 toolVersion = '6.0.0'
35 sourceSets = [ sourceSets.main ]
Alex Volanis7004a612018-01-24 10:30:13 -050036 ruleSets = [ 'java-basic' ]
37}
38
39tasks.withType(Pmd) {
40 reports {
41 html.enabled = true
42 xml.enabled = false
43 }
44}