-
Notifications
You must be signed in to change notification settings - Fork 10
/
pmd.xml
33 lines (26 loc) · 1.3 KB
/
pmd.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
32
33
<?xml version="1.0"?>
<ruleset name="Custom Rules"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
<description>
kafkaproxy PMD ruleset
</description>
<rule ref="category/java/errorprone.xml">
<!-- Extremely noisy with false prositives -->
<!-- https://github.com/pmd/pmd/issues/1668 -->
<exclude name="BeanMembersShouldSerialize"/>
<!-- Not working properly with Collection.forEach() -->
<!-- https://stackoverflow.com/questions/21592497/java-for-each-loop-being-flagged-as-ur-anomaly-by-pmd -->
<exclude name="DataflowAnomalyAnalysis"/>
<!-- Non-static initializers are a very useful Java feature and there's no point in denying their usage. -->
<exclude name="NonStaticInitializer"/>
<!-- Same for assignments in operands. -->
<exclude name="AssignmentInOperand"/>
<!-- Not a JEE application -->
<exclude name="UseProperClassLoader" />
<!-- Not super useful -->
<exclude name="ReturnEmptyArrayRatherThanNull" />
<exclude name="ReturnEmptyCollectionRatherThanNull" />
</rule>
</ruleset>