This repository was archived by the owner on Feb 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpmd.xml
More file actions
33 lines (30 loc) · 1.29 KB
/
pmd.xml
File metadata and controls
33 lines (30 loc) · 1.29 KB
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
<?xml version="1.0"?>
<ruleset name="Benjamin ruleset"
xmlns="http://pmd.sf.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/2.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>Common ruleset for all the code</description>
<rule ref="rulesets/java/basic.xml"/>
<rule ref="rulesets/java/braces.xml"/>
<rule ref="rulesets/java/codesize.xml"/>
<rule ref="rulesets/java/coupling.xml">
<!-- Gives a lot of false positives -->
<exclude name="LawOfDemeter"/>
</rule>
<rule ref="rulesets/java/design.xml">
<!-- They are really handy for in-place map construction in test -->
<exclude name="NonStaticInitializer"/>
</rule>
<rule ref="rulesets/java/empty.xml"/>
<rule ref="rulesets/java/imports.xml"/>
<rule ref="rulesets/java/naming.xml"/>
<rule ref="rulesets/java/strictexception.xml"/>
<rule ref="rulesets/java/strings.xml"/>
<rule ref="rulesets/java/typeresolution.xml">
<!-- Exclude the rule as it reports false positives on static wildcard imports due to a bug -->
<!-- TODO should be removed when fixed in the next version of PMD -->
<exclude name="UnusedImports"/>
</rule>
<rule ref="rulesets/java/unnecessary.xml"/>
<rule ref="rulesets/java/unusedcode.xml"/>
</ruleset>