-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpmd-custom.xml
31 lines (24 loc) · 1.04 KB
/
pmd-custom.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Sporniket Ruleset"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<!-- Customized PMD ruleset for Maven, for more information , see http://pmd.sourceforge.net/howtomakearuleset.html -->
<description>This ruleset checks the code for discouraged programming
constructs.</description>
<rule ref="rulesets/java/basic.xml" />
<rule ref="rulesets/java/empty.xml">
<exclude name="EmptyCatchBlock" />
</rule>
<rule ref="rulesets/java/empty.xml/EmptyCatchBlock">
<properties>
<property name="allowCommentedBlocks" value="true" />
</properties>
</rule>
<rule ref="rulesets/java/unnecessary.xml">
<exclude name="UselessParentheses" />
</rule>
<rule ref="rulesets/java/unusedcode.xml" />
<rule ref="rulesets/java/imports.xml" />
</ruleset>