-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #939 from uhafner/pmd-7.0.0-rc4
Bump version of PMD to PMD-7.0.0-RC4
- Loading branch information
Showing
14 changed files
with
200 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- ${project.groupId}:${project.artifactId}:${project.version} --> | ||
<ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
name="pmd-eclipse" | ||
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> | ||
<description>Ullrich Hafner's PMD rules</description> | ||
|
||
<rule ref="category/ecmascript/bestpractices.xml"/> | ||
<rule ref="category/ecmascript/codestyle.xml"/> | ||
<rule ref="category/ecmascript/errorprone.xml"/> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- ${project.groupId}:${project.artifactId}:${project.version} --> | ||
<ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
name="pmd-eclipse" | ||
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> | ||
<description>Ullrich Hafner's PMD rules</description> | ||
|
||
<rule ref="category/java/bestpractices.xml"> | ||
<exclude name="LiteralsFirstInComparisons"/> | ||
<exclude name="JUnitTestContainsTooManyAsserts"/> | ||
<exclude name="JUnitTestsShouldIncludeAssert"/> | ||
<exclude name="JUnitAssertionsShouldIncludeMessage"/> | ||
<exclude name="GuardLogStatement"/> | ||
<exclude name="AccessorMethodGeneration"/> | ||
<exclude name="JUnit5TestShouldBePackagePrivate"/> | ||
<exclude name="JUnit4TestShouldUseTestAnnotation"/> | ||
<exclude name="UnusedPrivateMethod"/> | ||
<exclude name="LooseCoupling"/> | ||
</rule> | ||
<rule ref="category/java/codestyle.xml"> | ||
<exclude name="EmptyControlStatement"/> | ||
<exclude name="AtLeastOneConstructor"/> | ||
<exclude name="UnnecessaryConstructor"/> | ||
<exclude name="FieldDeclarationsShouldBeAtStartOfClass"/> | ||
<exclude name="CommentDefaultAccessModifier"/> | ||
<exclude name="LocalVariableCouldBeFinal"/> | ||
<exclude name="LongVariable"/> | ||
<exclude name="ShortVariable"/> | ||
<exclude name="ShortClassName"/> | ||
<exclude name="OnlyOneReturn"/> | ||
<exclude name="EmptyMethodInAbstractClassShouldBeAbstract"/> | ||
<exclude name="ConfusingTernary"/> | ||
<exclude name="LocalVariableNamingConventions"/> | ||
<exclude name="ClassNamingConventions"/> | ||
</rule> | ||
<rule ref="category/java/codestyle.xml/UnnecessaryConstructor"> | ||
<properties> | ||
<property name="ignoredAnnotations" value="org.kohsuke.stapler.DataBoundConstructor"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/codestyle.xml/ClassNamingConventions"> | ||
<properties> | ||
<property name="utilityClassPattern" value="[A-Z][a-zA-Z0-9]+"/> | ||
<property name="testClassPattern" value="^[A-Z][a-zA-Z0-9]+Test.*$|^[A-Z][a-zA-Z0-9]+Benchmark.*$|"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/codestyle.xml/LinguisticNaming"> | ||
<properties> | ||
<property name="checkSetters" value="false"/> | ||
<property name="booleanMethodPrefixes" value="is|has|can|have|will" /> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/codestyle.xml/ConfusingTernary"> | ||
<properties> | ||
<property name="ignoreElseIf" value="true"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/design.xml"> | ||
<exclude name="LoosePackageCoupling"/> | ||
<exclude name="LawOfDemeter"/> | ||
<exclude name="TooManyMethods"/> | ||
<exclude name="ClassWithOnlyPrivateConstructorsShouldBeFinal"/> | ||
<exclude name="ExcessiveParameterList"/> | ||
<exclude name="ExcessiveMethodLength"/> | ||
<exclude name="UseObjectForClearerAPI"/> | ||
<exclude name="AvoidCatchingGenericException"/> | ||
<exclude name="FinalFieldCouldBeStatic"/> | ||
<exclude name="AvoidUncheckedExceptionsInSignatures"/> | ||
<exclude name="ExcessiveImports"/> | ||
<exclude name="SimplifyBooleanReturns"/> | ||
<exclude name="DataClass"/> | ||
</rule> | ||
<rule ref="category/java/design.xml/SimplifyBooleanReturns"> | ||
<properties> | ||
<property name="violationSuppressXPath" value="./MethodDeclaration[@Image='equals']"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/errorprone.xml"> | ||
<exclude name="AvoidDuplicateLiterals"/> | ||
<exclude name="TestClassWithoutTestCases"/> | ||
<exclude name="EmptyCatchBlock"/> | ||
<exclude name="AvoidLiteralsInIfCondition"/> | ||
<exclude name="UseProperClassLoader"/> | ||
</rule> | ||
<rule ref="category/java/errorprone.xml/AvoidLiteralsInIfCondition"> | ||
<properties> | ||
<property name="ignoreMagicNumbers" value="-1,0,1"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/errorprone.xml/EmptyCatchBlock"> | ||
<properties> | ||
<property name="allowCommentedBlocks" value="true"/> | ||
</properties> | ||
</rule> | ||
<rule ref="category/java/multithreading.xml"> | ||
<exclude name="UseConcurrentHashMap"/> | ||
</rule> | ||
<rule ref="category/java/performance.xml"> | ||
<exclude name="AppendCharacterWithChar"/> | ||
<exclude name="AvoidInstantiatingObjectsInLoops"/> | ||
<exclude name="RedundantFieldInitializer"/> | ||
<exclude name="ConsecutiveAppendsShouldReuse"/> | ||
<exclude name="UseStringBufferForStringAppends"/> | ||
</rule> | ||
<rule ref="category/java/security.xml"> | ||
</rule> | ||
|
||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.