-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmd.gradle
39 lines (36 loc) · 1.08 KB
/
pmd.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
apply plugin: 'pmd'
pmdMain {
source ='src/main/java'
reports {
xml.enabled = false
html.enabled = true
}
/*excluding original osis stub code from PMD scan*/
exclude '**/com/vmware/osis/resource/*.java',
"**/com/vmware/osis/resource/*.*",
"**/com/vmware/osis/model/**/*.*",
"**/com/vmware/osis/annotation/*.*",
"**/com/vmware/osis/security/**/*.*",
"**/com/vmware/osis/service/*.*",
"**/com/vmware/osis/validation/*.*",
"**/com/vmware/osis/platform/**/*.*",
"**/com/vmware/osis/platform/*.*",
/*Temporarily adding below packages into exclusion. Needs to be removed*/
"**/com/scality/osis/**/*.*"
}
pmdTest {
source ='src/test/java'
reports {
xml.enabled = false
html.enabled = true
}
}
pmd {
consoleOutput = true
toolVersion = "6.50.0"
rulesMinimumPriority = 5
ignoreFailures = false
reportsDir = file("$rootDir/reports/pmd-lint")
ruleSetFiles = files("$rootDir/pmd-rules.xml")
ruleSets = []
}