summaryrefslogtreecommitdiffstats
path: root/src/jaegertracing/thrift/lib/java/gradle/codeQualityChecks.gradle
blob: 1ff1c297dea8edfd07b850c08299e069dc720270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// =================================================================
// Configure the Gradle code quality plugins here.
//

apply plugin: 'findbugs'

findbugs {
    ignoreFailures = true
    toolVersion = '3.0.1'
    sourceSets = [ sourceSets.main ]
    effort = 'max'
    reportLevel = 'low'
    excludeFilter = file('code_quality_tools/findbugs-filter.xml')
}

tasks.withType(FindBugs) {
    reports {
        text.enabled = false
        html.enabled = true
        xml.enabled = false
    }
}

apply plugin: 'pmd'

pmd {
    ignoreFailures = true
    toolVersion = '6.0.0'
    sourceSets = [ sourceSets.main ]
    ruleSets = [ 'java-basic' ]
}

tasks.withType(Pmd) {
    reports {
        html.enabled = true
        xml.enabled = false
    }
}