File tree 2 files changed +21
-3
lines changed
2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ testing {
24
24
pmd {
25
25
consoleOutput = true
26
26
toolVersion = libs. versions. pmd. get()
27
- ruleSets = [" category/java/errorprone.xml" ,
28
- " category/java/bestpractices.xml" ,
29
- " category/java/performance.xml" ]
27
+ ruleSets = []
28
+ ruleSetFiles = files(file(" ${ rootProject.projectDir} /config/pmd/ruleset.xml" ))
30
29
}
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+
3
+ <ruleset name =" Custom Rules"
4
+ xmlns =" http://pmd.sourceforge.net/ruleset/2.0.0"
5
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
6
+ xsi : schemaLocation =" http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd" >
7
+
8
+ <description >
9
+ Exercises for Programmers - custom rules
10
+ </description >
11
+
12
+ <rule ref =" category/java/errorprone.xml" />
13
+ <rule ref =" category/java/bestpractices.xml" >
14
+ <exclude name =" JUnitTestsShouldIncludeAssert" />
15
+ <exclude name =" JUnitTestContainsTooManyAsserts" />
16
+ </rule >
17
+ <rule ref =" category/java/performance.xml" />
18
+
19
+ </ruleset >
You can’t perform that action at this time.
0 commit comments