forked from neo4j/neo4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmd.xml
68 lines (64 loc) · 2.84 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0"?>
<ruleset name="Neo4j"
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.svn.sourceforge.net/svnroot/pmd/tags/pmd/pmd_release_5_0_0/src/main/resources/ruleset_2_0_0.xsd"
xsi:noNamespaceSchemaLocation="https://pmd.svn.sourceforge.net/svnroot/pmd/tags/pmd/pmd_release_5_0_0/src/main/resources/ruleset_2_0_0.xsd">
<description>
Static analysis rules for the Neo4j codebase.
</description>
<rule ref="rulesets/java/basic.xml"/>
<rule ref="rulesets/java/braces.xml"/>
<rule ref="rulesets/java/clone.xml"/>
<rule ref="rulesets/java/codesize.xml"/>
<rule ref="rulesets/java/comments.xml/CommentContent"/>
<rule ref="rulesets/java/comments.xml/CommentSize">
<properties>
<property name="maxLineLength" value="120"/>
</properties>
</rule>
<rule ref="rulesets/java/coupling.xml/CouplingBetweenObjects"/>
<rule ref="rulesets/java/coupling.xml/ExcessiveImports"/>
<rule ref="rulesets/java/coupling.xml/LooseCoupling"/>
<rule ref="rulesets/java/design.xml">
<exclude name="UseSingleton"/>
<exclude name="FieldDeclarationsShouldBeAtStartOfClass"/>
<exclude name="ConfusingTernary"/>
<exclude name="NonStaticInitializer"/>
<exclude name="MissingStaticMethodInNonInstantiatableClass"/>
<exclude name="AbstractClassWithoutAbstractMethod"/>
<exclude name="EmptyMethodInAbstractClassShouldBeAbstract"/>
</rule>
<rule ref="rulesets/java/empty.xml"/>
<rule ref="rulesets/java/finalizers.xml"/>
<rule ref="rulesets/java/imports.xml/DuplicateImports"/>
<rule ref="rulesets/java/imports.xml/DontImportJavaLang"/>
<rule ref="rulesets/java/imports.xml/UnusedImports"/>
<rule ref="rulesets/java/imports.xml/ImportFromSamePackage"/>
<rule ref="rulesets/java/imports.xml/TooManyStaticImports">
<properties>
<property name="maximumStaticImports" value="10"/>
</properties>
</rule>
<rule ref="rulesets/java/imports.xml/UnnecessaryFullyQualifiedName"/>
<rule ref="rulesets/java/naming.xml">
<exclude name="ShortVariable"/>
<exclude name="LongVariable"/>
<exclude name="AbstractNaming"/>
<exclude name="AvoidFieldNameMatchingMethodName"/>
<exclude name="GenericsNaming"/>
<exclude name="ShortClassName"/>
<exclude name="ShortMethodName"/>
</rule>
<rule ref="rulesets/java/optimizations.xml">
<exclude name="LocalVariableCouldBeFinal"/>
<exclude name="MethodArgumentCouldBeFinal"/>
<exclude name="AvoidInstantiatingObjectsInLoops"/>
</rule>
<rule ref="rulesets/java/strictexception.xml"/>
<rule ref="rulesets/java/strings.xml">
<exclude name="InsufficientStringBufferDeclaration"/>
</rule>
<rule ref="rulesets/java/typeresolution.xml"/>
<rule ref="rulesets/java/unusedcode.xml"/>
</ruleset>