1+ <?xml version =" 1.0" ?>
2+ <ruleset name =" Codacy PMD Ruleset"
3+ xmlns =" http://pmd.sourceforge.net/ruleset/2.0.0"
4+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5+ xsi : schemaLocation =" http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd" >
6+ <description >Codacy PMD Ruleset</description >
7+
8+ <rule ref =" category/apex/design.xml/AvoidDeeplyNestedIfStmts" />
9+ <rule ref =" category/apex/design.xml/ExcessiveClassLength" />
10+ <rule ref =" category/apex/design.xml/ExcessiveParameterList" />
11+ <rule ref =" category/apex/design.xml/ExcessivePublicCount" />
12+ <rule ref =" category/apex/security.xml/ApexBadCrypto" />
13+ <rule ref =" category/apex/security.xml/ApexCRUDViolation" />
14+ <rule ref =" category/apex/security.xml/ApexDangerousMethods" />
15+ <rule ref =" category/apex/security.xml/ApexInsecureEndpoint" />
16+ <rule ref =" category/apex/security.xml/ApexOpenRedirect" />
17+ <rule ref =" category/apex/security.xml/ApexSOQLInjection" />
18+ <rule ref =" category/apex/security.xml/ApexSharingViolations" />
19+ <rule ref =" category/apex/security.xml/ApexSuggestUsingNamedCred" />
20+ <rule ref =" category/apex/security.xml/ApexXSSFromEscapeFalse" />
21+ <rule ref =" category/apex/security.xml/ApexXSSFromURLParam" />
22+ <rule ref =" category/ecmascript/bestpractices.xml/AvoidWithStatement" />
23+ <rule ref =" category/ecmascript/bestpractices.xml/ConsistentReturn" />
24+ <rule ref =" category/ecmascript/bestpractices.xml/UseBaseWithParseInt" />
25+ <rule ref =" category/ecmascript/codestyle.xml/AssignmentInOperand" >
26+ <properties >
27+ <property name =" allowWhile" value =" false" />
28+ <property name =" allowIf" value =" false" />
29+ <property name =" allowTernaryResults" value =" false" />
30+ <property name =" allowTernary" value =" false" />
31+ <property name =" allowFor" value =" false" />
32+ <property name =" allowIncrementDecrement" value =" false" />
33+ </properties >
34+ </rule >
35+ <rule ref =" category/ecmascript/codestyle.xml/UnnecessaryBlock" />
36+ <rule ref =" category/ecmascript/errorprone.xml/EqualComparison" />
37+ <rule ref =" category/ecmascript/errorprone.xml/InnaccurateNumericLiteral" />
38+ <rule ref =" category/java/bestpractices.xml/AvoidReassigningParameters" />
39+ <rule ref =" category/java/bestpractices.xml/CheckResultSet" />
40+ <rule ref =" category/java/bestpractices.xml/JUnitTestsShouldIncludeAssert" />
41+ <rule ref =" category/java/bestpractices.xml/OneDeclarationPerLine" >
42+ <properties >
43+ <property name =" strictMode" value =" false" />
44+ </properties >
45+ </rule >
46+ <rule ref =" category/java/bestpractices.xml/SwitchStmtsShouldHaveDefault" />
47+ <rule ref =" category/java/bestpractices.xml/UnusedFormalParameter" />
48+ <rule ref =" category/java/bestpractices.xml/UnusedLocalVariable" />
49+ <rule ref =" category/java/bestpractices.xml/UnusedPrivateField" />
50+ <rule ref =" category/java/bestpractices.xml/UnusedPrivateMethod" />
51+ <rule ref =" category/java/codestyle.xml/ClassNamingConventions" >
52+ <properties >
53+ <property name =" testClassPattern" value =" ^Test.*$|^[A-Z][a-zA-Z0-9]*Test(s|Case)?$" />
54+ <property name =" abstractClassPattern" value =" [A-Z][a-zA-Z0-9]*" />
55+ <property name =" classPattern" value =" [A-Z][a-zA-Z0-9]*" />
56+ <property name =" utilityClassPattern" value =" [A-Z][a-zA-Z0-9]*" />
57+ <property name =" annotationPattern" value =" [A-Z][a-zA-Z0-9]*" />
58+ <property name =" enumPattern" value =" [A-Z][a-zA-Z0-9]*" />
59+ <property name =" interfacePattern" value =" [A-Z][a-zA-Z0-9]*" />
60+ </properties >
61+ </rule >
62+ <rule ref =" category/java/codestyle.xml/ExtendsObject" />
63+ <rule ref =" category/java/codestyle.xml/FieldDeclarationsShouldBeAtStartOfClass" />
64+ <rule ref =" category/java/codestyle.xml/GenericsNaming" />
65+ <rule ref =" category/java/codestyle.xml/MethodNamingConventions" >
66+ <properties >
67+ <property name =" junit3TestPattern" value =" test[A-Z0-9][a-zA-Z0-9]*" />
68+ <property name =" junit5TestPattern" value =" [a-z][a-zA-Z0-9]*" />
69+ <property name =" staticPattern" value =" [a-z][a-zA-Z0-9]*" />
70+ <property name =" methodPattern" value =" [a-z][a-zA-Z0-9]*" />
71+ <property name =" junit4TestPattern" value =" [a-z][a-zA-Z0-9]*" />
72+ <property name =" nativePattern" value =" [a-z][a-zA-Z0-9]*" />
73+ </properties >
74+ </rule >
75+ <rule ref =" category/java/codestyle.xml/NoPackage" />
76+ <rule ref =" category/java/codestyle.xml/PackageCase" />
77+ <rule ref =" category/java/codestyle.xml/UnnecessaryConstructor" />
78+ <rule ref =" category/java/codestyle.xml/UnnecessaryFullyQualifiedName" />
79+ <rule ref =" category/java/codestyle.xml/UnnecessaryReturn" />
80+ <rule ref =" category/java/design.xml/AvoidThrowingNullPointerException" />
81+ <rule ref =" category/java/design.xml/AvoidThrowingRawExceptionTypes" />
82+ <rule ref =" category/java/design.xml/CollapsibleIfStatements" />
83+ <rule ref =" category/java/design.xml/ExcessiveParameterList" />
84+ <rule ref =" category/java/design.xml/LogicInversion" />
85+ <rule ref =" category/java/design.xml/NPathComplexity" />
86+ <rule ref =" category/java/design.xml/SimplifyBooleanExpressions" />
87+ <rule ref =" category/java/design.xml/SimplifyBooleanReturns" />
88+ <rule ref =" category/java/design.xml/SingularField" />
89+ <rule ref =" category/java/documentation.xml/UncommentedEmptyMethodBody" />
90+ <rule ref =" category/java/errorprone.xml/AssignmentToNonFinalStatic" />
91+ <rule ref =" category/java/errorprone.xml/AvoidAccessibilityAlteration" />
92+ <rule ref =" category/java/errorprone.xml/AvoidBranchingStatementAsLastInLoop" />
93+ <rule ref =" category/java/errorprone.xml/AvoidCallingFinalize" />
94+ <rule ref =" category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor" />
95+ <rule ref =" category/java/errorprone.xml/AvoidInstanceofChecksInCatchClause" />
96+ <rule ref =" category/java/errorprone.xml/AvoidMultipleUnaryOperators" />
97+ <rule ref =" category/java/errorprone.xml/BrokenNullCheck" />
98+ <rule ref =" category/java/errorprone.xml/CheckSkipResult" />
99+ <rule ref =" category/java/errorprone.xml/CompareObjectsWithEquals" >
100+ <properties >
101+ <property name =" typesThatCompareByReference" value =" java.lang.Enum,java.lang.Class" />
102+ </properties >
103+ </rule >
104+ <rule ref =" category/java/errorprone.xml/DoNotHardCodeSDCard" />
105+ <rule ref =" category/java/errorprone.xml/DontUseFloatTypeForLoopIndices" />
106+ <rule ref =" category/java/errorprone.xml/EmptyFinalizer" />
107+ <rule ref =" category/java/errorprone.xml/EqualsNull" />
108+ <rule ref =" category/java/errorprone.xml/JUnitSpelling" />
109+ <rule ref =" category/java/errorprone.xml/JUnitStaticSuite" />
110+ <rule ref =" category/java/errorprone.xml/JumbledIncrementer" />
111+ <rule ref =" category/java/errorprone.xml/MethodWithSameNameAsEnclosingClass" />
112+ <rule ref =" category/java/errorprone.xml/MisplacedNullCheck" />
113+ <rule ref =" category/java/errorprone.xml/MissingStaticMethodInNonInstantiatableClass" >
114+ <properties >
115+ <property name =" annotations" value =" org.springframework.beans.factory.annotation.Autowired,javax.inject.Inject" />
116+ </properties >
117+ </rule >
118+ <rule ref =" category/java/errorprone.xml/NonCaseLabelInSwitchStatement" />
119+ <rule ref =" category/java/errorprone.xml/NonStaticInitializer" />
120+ <rule ref =" category/java/errorprone.xml/ReturnFromFinallyBlock" />
121+ <rule ref =" category/java/errorprone.xml/UnconditionalIfStatement" />
122+ <rule ref =" category/java/errorprone.xml/UnnecessaryBooleanAssertion" />
123+ <rule ref =" category/java/errorprone.xml/UnnecessaryCaseChange" />
124+ <rule ref =" category/java/errorprone.xml/UseEqualsToCompareStrings" />
125+ <rule ref =" category/java/errorprone.xml/UselessOperationOnImmutable" />
126+ <rule ref =" category/java/multithreading.xml/AvoidThreadGroup" />
127+ <rule ref =" category/java/multithreading.xml/DontCallThreadRun" />
128+ <rule ref =" category/java/performance.xml/StringInstantiation" />
129+ <rule ref =" category/java/performance.xml/StringToString" />
130+ <rule ref =" category/java/performance.xml/UseStringBufferLength" />
131+ <rule ref =" category/jsp/bestpractices.xml/DontNestJsfInJstlIteration" />
132+ <rule ref =" category/jsp/bestpractices.xml/NoClassAttribute" />
133+ <rule ref =" category/jsp/bestpractices.xml/NoHtmlComments" />
134+ <rule ref =" category/jsp/bestpractices.xml/NoJspForward" />
135+ <rule ref =" category/jsp/codestyle.xml/DuplicateJspImports" />
136+ <rule ref =" category/jsp/design.xml/NoInlineScript" />
137+ <rule ref =" category/jsp/design.xml/NoInlineStyleInformation" />
138+ <rule ref =" category/jsp/design.xml/NoLongScripts" />
139+ <rule ref =" category/jsp/design.xml/NoScriptlets" />
140+ <rule ref =" category/jsp/errorprone.xml/JspEncoding" />
141+ <rule ref =" category/jsp/security.xml/IframeMissingSrcAttribute" />
142+ <rule ref =" category/jsp/security.xml/NoUnsanitizedJSPExpression" />
143+ <rule ref =" category/plsql/bestpractices.xml/TomKytesDespair" />
144+ <rule ref =" category/plsql/codestyle.xml/MisplacedPragma" />
145+ <rule ref =" category/plsql/design.xml/ExcessiveMethodLength" />
146+ <rule ref =" category/plsql/design.xml/ExcessiveObjectLength" />
147+ <rule ref =" category/plsql/design.xml/ExcessivePackageBodyLength" />
148+ </ruleset >
0 commit comments