Changeset 19628 in josm for trunk/tools/pmd/josm-ruleset.xml
- Timestamp:
- 2026-10-01T17:41:55+02:00 (2 days ago)
- File:
-
- 1 edited
-
trunk/tools/pmd/josm-ruleset.xml (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/pmd/josm-ruleset.xml
r19535 r19628 17 17 <exclude name="ConstantsInInterface"/> 18 18 <exclude name="GuardLogStatement"/> 19 <exclude name="JUnit4TestShouldUseTestAnnotation" reason="False positive in src/org/openstreetmap/josm/data/validation/Test.java"/>20 19 <exclude name="LiteralsFirstInComparisons" reason="Introduced in 6.24, some positives in source code at this time. Replaces PositionLiteralsFirstInComparisons."/> 21 20 <exclude name="LooseCoupling"/> … … 23 22 <exclude name="OneDeclarationPerLine"/> 24 23 <exclude name="ReplaceHashtableWithMap"/> 25 <exclude name="SwitchStmtsShouldHaveDefault"/>26 24 <exclude name="SystemPrintln"/> 27 25 <exclude name="UnusedAssignment" reason="Introduced in 6.26, some number of positives in source code at this time"/> 28 <exclude name="UnusedPrivateMethod" reason="Broken since PMD 6.33, see https://github.com/pmd/pmd/issues/3468"/>29 <exclude name="UnusedPrivateField" reason="Broken in 7.2.x"/>30 26 <exclude name="UseVarargs"/> 31 27 </rule> … … 59 55 <exclude name="MethodArgumentCouldBeFinal"/> 60 56 <exclude name="MethodNamingConventions"/> 61 <exclude name="NoPackage"/>62 57 <exclude name="OnlyOneReturn"/> 63 58 <exclude name="PrematureDeclaration"/> … … 130 125 <exclude name="SimplifiedTernary"/> 131 126 <exclude name="SimplifyBooleanReturns" reason="Increased sensitivity in 7.x; should be fixed in our source code." /> 132 <exclude name="SimplifyConditional"/>133 127 <exclude name="SingularField"/> 134 128 <exclude name="SwitchDensity"/> 135 129 <exclude name="TooManyFields"/> 136 130 <exclude name="TooManyMethods"/> 137 <exclude name="UseObjectForClearerAPI"/>138 131 <exclude name="UselessOverridingMethod"/> 139 <exclude name="UseUtilityClass"/>140 132 </rule> 141 133 <rule ref="category/java/design.xml/SignatureDeclareThrowsException"> … … 150 142 <exclude name="AssignmentToNonFinalStatic"/> 151 143 <exclude name="AvoidBranchingStatementAsLastInLoop"/> 152 <exclude name="AvoidCatchingNPE"/>153 144 <exclude name="AvoidDuplicateLiterals"/> 154 145 <exclude name="AvoidFieldNameMatchingMethodName"/> … … 160 151 <exclude name="ConstructorCallsOverridableMethod"/> 161 152 <exclude name="DoNotTerminateVM"/> 162 <exclude name="DontImportSun"/>163 153 <exclude name="ImplicitSwitchFallThrough"/> 164 154 <exclude name="MissingSerialVersionUID"/> … … 182 172 <exclude name="AvoidInstantiatingObjectsInLoops"/> 183 173 <exclude name="ConsecutiveLiteralAppends"/> 184 <exclude name="InefficientEmptyStringCheck"/>185 174 <exclude name="InsufficientStringBufferDeclaration" reason="PMD 6.40 has a bug where it doesn't properly count appended strings in if statements."/> 186 <exclude name="TooFewBranchesForASwitchStatement"/>187 <exclude name="UseArrayListInsteadOfVector"/>188 <exclude name="UselessStringValueOf"/>189 175 <exclude name="UseStringBufferForStringAppends"/> 190 176 </rule>
Note:
See TracChangeset
for help on using the changeset viewer.
