forked from issotina/qualitymatters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quality.gradle
53 lines (38 loc) · 1.18 KB
/
quality.gradle
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
plugins.apply('pmd')
pmd {
toolVersion = '5.4.1'
}
task pmd(type: Pmd) {
ignoreFailures = false // Fail early.
ruleSetFiles = files("${project.rootDir}/code_quality_tools/pmd.xml")
ruleSets = []
source = fileTree('src/main/java')
}
plugins.apply('findbugs')
task findbugs(type: FindBugs) {
ignoreFailures = false // Fail early.
effort = 'max'
reportLevel = 'low' // Report even low priority problems.
reports {
html.enabled = true
xml.enabled = false
}
classes = files("${project.projectDir}/build/intermediates/classes")
source = fileTree('src/main/java')
// If somebody has an idea how to make this work with support libraries -> open a PR please.
classpath = files()
excludeFilter = new File("${project.rootDir}/code_quality_tools/findbugs-filter.xml")
}
plugins.apply('checkstyle')
checkstyle {
toolVersion = '6.16.1'
}
task checkstyle(type: Checkstyle) {
configFile rootProject.file('checkstyle.xml')
configFile file("${project.rootDir}/code_quality_tools/checkstyle.xml")
ignoreFailures false // Fail early.
showViolations true
source 'src'
include '**/*.java'
classpath = files()
}