Merge pull request #4796 from adangel:remove-deprecated-and-release-rulesets

Remove deprecated and release rulesets #4796
This commit is contained in:
Andreas Dangel
2024-02-02 19:57:04 +01:00
134 changed files with 79 additions and 2526 deletions

View File

@ -84,17 +84,12 @@ if [ "${BUILD_TOOLS_VERSION}" != "${BUILD_TOOLS_VERSION_RELEASE}" ]; then
exit 1
fi
RELEASE_RULESET="pmd-core/src/main/resources/rulesets/releases/${RELEASE_VERSION//\./}.xml"
echo "* Update date info in **docs/_config.yml**."
echo " date: $(date -u +%d-%B-%Y)"
echo
echo "* Update version info in **docs/_config.yml**."
echo " remove the SNAPSHOT from site.pmd.version"
echo
echo "* Ensure all the new rules are listed in the proper file:"
echo " ${RELEASE_RULESET}"
echo
echo "* Update **pmd-apex/src/main/resources/rulesets/apex/quickstart.xml** and"
echo " **pmd-java/src/main/resources/rulesets/java/quickstart.xml** with the new rules."
echo
@ -151,11 +146,6 @@ EOF
echo "Committing current changes (pmd)"
if [[ -e "${RELEASE_RULESET}" ]]
then
git add "${RELEASE_RULESET}"
fi
git commit -a -m "Prepare pmd release ${RELEASE_VERSION}"
(
cd ../pmd.github.io

View File

@ -81,8 +81,6 @@ pmd:
The release type could be one of "bugfix" (e.g. 6.34.x), "minor" (6.x.0), or "major" (x.0.0).
The release notes usually mention any new rules that have been added since the last release.
Please double-check the file `pmd-core/src/main/resources/rulesets/releases/<version>.xml`, so
that all new rules are listed.
Add the new rules as comments to the quickstart rulesets:
* `pmd-apex/src/main/resources/rulesets/apex/quickstart.xml`

View File

@ -97,6 +97,67 @@ in the Migration Guide.
* {% rule java/codestyle/EmptyControlStatement %}: The rule has a new property to allow empty blocks when
they contain a comment (`allowCommentedBlocks`).
**Removed deprecated rulesets**
The following previously deprecated rulesets have been removed. These were the left-over rulesets from PMD 5.
The rules have been moved into categories with PMD 6.
* rulesets/apex/apexunit.xml
* rulesets/apex/braces.xml
* rulesets/apex/complexity.xml
* rulesets/apex/empty.xml
* rulesets/apex/metrics.xml
* rulesets/apex/performance.xml
* rulesets/apex/ruleset.xml
* rulesets/apex/securty.xml
* rulesets/apex/style.xml
* rulesets/java/android.xml
* rulesets/java/basic.xml
* rulesets/java/clone.xml
* rulesets/java/codesize.xml
* rulesets/java/comments.xml
* rulesets/java/controversial.xml
* rulesets/java/coupling.xml
* rulesets/java/design.xml
* rulesets/java/empty.xml
* rulesets/java/finalizers.xml
* rulesets/java/imports.xml
* rulesets/java/j2ee.xml
* rulesets/java/javabeans.xml
* rulesets/java/junit.xml
* rulesets/java/logging-jakarta-commons.xml
* rulesets/java/logging-java.xml
* rulesets/java/metrics.xml
* rulesets/java/migrating.xml
* rulesets/java/migrating_to_13.xml
* rulesets/java/migrating_to_14.xml
* rulesets/java/migrating_to_15.xml
* rulesets/java/migrating_to_junit4.xml
* rulesets/java/naming.xml
* rulesets/java/optimizations.xml
* rulesets/java/strictexception.xml
* rulesets/java/strings.xml
* rulesets/java/sunsecure.xml
* rulesets/java/typeresolution.xml
* rulesets/java/unnecessary.xml
* rulesets/java/unusedcode.xml
* rulesets/ecmascript/basic.xml
* rulesets/ecmascript/braces.xml
* rulesets/ecmascript/controversial.xml
* rulesets/ecmascript/unnecessary.xml
* rulesets/jsp/basic.xml
* rulesets/jsp/basic-jsf.xml
* rulesets/plsql/codesize.xml
* rulesets/plsql/dates.xml
* rulesets/plsql/strictsyntax.xml
* rulesets/plsql/TomKytesDespair.xml
* rulesets/vf/security.xml
* rulesets/vm/basic.xml
* rulesets/pom/basic.xml
* rulesets/xml/basic.xml
* rulesets/xsl/xpath.xml
* rulesets/releases/*
#### Fixed issues
* cli
@ -129,6 +190,7 @@ in the Migration Guide.
* [#4736](https://github.com/pmd/pmd/issues/4736): \[ci] Improve build procedure
* [#4741](https://github.com/pmd/pmd/pull/4741): Add pmd-compat6 module for maven-pmd-plugin
* [#4749](https://github.com/pmd/pmd/pull/4749): Fixes NoSuchMethodError on processing errors in pmd-compat6
* [#4796](https://github.com/pmd/pmd/pull/4796): Remove deprecated and release rulesets
* apex-performance
* [#4675](https://github.com/pmd/pmd/issues/4675): \[apex] New Rule: OperationWithHighCostInLoop
* groovy
@ -589,6 +651,7 @@ See also [Detailed Release Notes for PMD 7]({{ baseurl }}pmd_release_notes_pmd7.
* [#4736](https://github.com/pmd/pmd/issues/4736): \[ci] Improve build procedure
* [#4741](https://github.com/pmd/pmd/pull/4741): Add pmd-compat6 module for maven-pmd-plugin
* [#4749](https://github.com/pmd/pmd/pull/4749): Fixes NoSuchMethodError on processing errors in pmd-compat6
* [#4796](https://github.com/pmd/pmd/pull/4796): Remove deprecated and release rulesets
* ant
* [#4080](https://github.com/pmd/pmd/issues/4080): \[ant] Split off Ant integration into a new submodule
* core

View File

@ -1,14 +0,0 @@
<?xml version="1.0"?>
<ruleset name="ApexUnit"
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>
These rules deal with different problems that can occur with Apex unit tests.
</description>
<rule ref="category/apex/bestpractices.xml/ApexUnitTestClassShouldHaveAsserts" deprecated="true" />
<rule ref="category/apex/bestpractices.xml/ApexUnitTestShouldNotUseSeeAllDataTrue" deprecated="true" />
</ruleset>

View File

@ -1,16 +0,0 @@
<?xml version="1.0"?>
<ruleset name="Braces"
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>
The Braces ruleset contains rules regarding the use and placement of braces.
</description>
<rule ref="category/apex/codestyle.xml/ForLoopsMustUseBraces" deprecated="true" />
<rule ref="category/apex/codestyle.xml/IfElseStmtsMustUseBraces" deprecated="true" />
<rule ref="category/apex/codestyle.xml/IfStmtsMustUseBraces" deprecated="true" />
<rule ref="category/apex/codestyle.xml/WhileLoopsMustUseBraces" deprecated="true" />
</ruleset>

View File

@ -1,21 +0,0 @@
<?xml version="1.0"?>
<ruleset name="Complexity" 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>
The Complexity ruleset contains rules that find problems related to code size or complexity.
</description>
<rule ref="category/apex/design.xml/AvoidDeeplyNestedIfStmts" deprecated="true" />
<rule ref="category/apex/design.xml/ExcessiveClassLength" deprecated="true" />
<rule ref="category/apex/design.xml/ExcessiveParameterList" deprecated="true" />
<rule ref="category/apex/design.xml/ExcessivePublicCount" deprecated="true" />
<rule ref="category/apex/design.xml/NcssConstructorCount" deprecated="true" />
<rule ref="category/apex/design.xml/NcssMethodCount" deprecated="true" />
<rule ref="category/apex/design.xml/NcssTypeCount" deprecated="true" />
<rule ref="category/apex/design.xml/StdCyclomaticComplexity" deprecated="true" />
<rule ref="category/apex/design.xml/TooManyFields" deprecated="true" />
</ruleset>

View File

@ -1,18 +0,0 @@
<?xml version="1.0"?>
<ruleset name="Empty Code"
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>
The Empty Code ruleset contains rules that find empty statements of any kind (empty method,
empty block statement, empty try or catch block,...).
</description>
<rule ref="category/apex/errorprone.xml/EmptyCatchBlock" deprecated="true" />
<rule ref="category/apex/errorprone.xml/EmptyIfStmt" deprecated="true" />
<rule ref="category/apex/errorprone.xml/EmptyStatementBlock" deprecated="true" />
<rule ref="category/apex/errorprone.xml/EmptyTryOrFinallyBlock" deprecated="true" />
<rule ref="category/apex/errorprone.xml/EmptyWhileStmt" deprecated="true" />
</ruleset>

View File

@ -1,13 +0,0 @@
<?xml version="1.0"?>
<ruleset name="Metrics temporary ruleset"
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>
These are rules which use the Metrics Framework to calculate metrics.
</description>
<rule ref="category/apex/design.xml/CyclomaticComplexity" deprecated="true" />
</ruleset>

View File

@ -1,15 +0,0 @@
<?xml version="1.0"?>
<ruleset name="Performance"
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>
The Performance ruleset contains a collection of good practices which should be followed.
</description>
<rule ref="category/apex/performance.xml/AvoidDmlStatementsInLoops" deprecated="true" />
<rule ref="category/apex/performance.xml/AvoidSoqlInLoops" deprecated="true" />
<rule ref="category/apex/performance.xml/AvoidSoslInLoops" deprecated="true" />
</ruleset>

View File

@ -1,54 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Default ruleset used by the CodeClimate Engine for Salesforce.com Apex" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd">
<description>
Default ruleset used by the Code Climate Engine for Salesforce.com Apex
Note: This ruleset is deprecated. Use "rulesets/apex/quickstart.xml" instead.
</description>
<rule ref="rulesets/apex/quickstart.xml/ExcessiveClassLength" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ExcessiveParameterList" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ExcessivePublicCount" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/NcssConstructorCount" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/NcssMethodCount" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/NcssTypeCount" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/StdCyclomaticComplexity" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/TooManyFields" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/AvoidDeeplyNestedIfStmts" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/CyclomaticComplexity" deprecated="true" />
<rule ref="category/apex/performance.xml/AvoidSoqlInLoops" deprecated="true" />
<rule ref="category/apex/performance.xml/AvoidSoslInLoops" deprecated="true" />
<rule ref="category/apex/performance.xml/AvoidDmlStatementsInLoops" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/AvoidDirectAccessTriggerMap" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/AvoidLogicInTrigger" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/AvoidGlobalModifier" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/AvoidNonExistentAnnotations" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/AvoidHardcodingId" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ClassNamingConventions" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/MethodNamingConventions" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/MethodWithSameNameAsEnclosingClass" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexUnitTestClassShouldHaveAsserts" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexUnitTestShouldNotUseSeeAllDataTrue" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexSharingViolations" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexInsecureEndpoint" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexCSRF" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexOpenRedirect" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexSOQLInjection" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexXSSFromURLParam" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexXSSFromEscapeFalse" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexBadCrypto" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexCRUDViolation" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexDangerousMethods" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexSuggestUsingNamedCred" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/IfStmtsMustUseBraces" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/WhileLoopsMustUseBraces" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/IfElseStmtsMustUseBraces" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ForLoopsMustUseBraces" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/EmptyCatchBlock" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/EmptyIfStmt" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/EmptyWhileStmt" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/EmptyTryOrFinallyBlock" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/EmptyStatementBlock" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/OneDeclarationPerLine" deprecated="true" />
<rule ref="rulesets/apex/quickstart.xml/ApexDoc" deprecated="true" />
</ruleset>

View File

@ -1,11 +0,0 @@
#
# BSD-style license; for more info see http://pmd.sourceforge.net/license.html
#
rulesets.filenames=\
category/apex/bestpractices.xml,\
category/apex/codestyle.xml,\
category/apex/design.xml,\
category/apex/documentation.xml,\
category/apex/errorprone.xml,\
category/apex/performance.xml,\
category/apex/security.xml

View File

@ -1,23 +0,0 @@
<?xml version="1.0"?>
<ruleset name="Security" 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>
These rules deal with different security problems that can occur within Apex.
</description>
<rule ref="category/apex/security.xml/ApexBadCrypto" deprecated="true" />
<rule ref="category/apex/security.xml/ApexCRUDViolation" deprecated="true" />
<rule ref="category/apex/errorprone.xml/ApexCSRF" deprecated="true" />
<rule ref="category/apex/security.xml/ApexDangerousMethods" deprecated="true" />
<rule ref="category/apex/security.xml/ApexInsecureEndpoint" deprecated="true" />
<rule ref="category/apex/security.xml/ApexOpenRedirect" deprecated="true" />
<rule ref="category/apex/security.xml/ApexSharingViolations" deprecated="true" />
<rule ref="category/apex/security.xml/ApexSOQLInjection" deprecated="true" />
<rule ref="category/apex/security.xml/ApexSuggestUsingNamedCred" deprecated="true" />
<rule ref="category/apex/security.xml/ApexXSSFromEscapeFalse" deprecated="true" />
<rule ref="category/apex/security.xml/ApexXSSFromURLParam" deprecated="true" />
</ruleset>

View File

@ -1,21 +0,0 @@
<?xml version="1.0"?>
<ruleset name="Style"
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>
The Style Ruleset contains rules regarding preferred usage of names and identifiers.
</description>
<rule ref="category/apex/codestyle.xml/ClassNamingConventions" deprecated="true" />
<rule ref="category/apex/codestyle.xml/MethodNamingConventions" deprecated="true" />
<rule ref="category/apex/errorprone.xml/AvoidDirectAccessTriggerMap" deprecated="true" />
<rule ref="category/apex/errorprone.xml/AvoidHardcodingId" deprecated="true" />
<rule ref="category/apex/errorprone.xml/MethodWithSameNameAsEnclosingClass" deprecated="true" />
<rule ref="category/apex/bestpractices.xml/AvoidGlobalModifier" deprecated="true" />
<rule ref="category/apex/bestpractices.xml/AvoidLogicInTrigger" deprecated="true" />
</ruleset>

View File

@ -15,15 +15,9 @@ import net.sourceforge.pmd.RuleSetLoader;
import com.github.stefanbirkner.systemlambda.SystemLambda;
class DefaultRulesetTest {
class QuickstartRulesetTest {
private static final String QUICKSTART_RULESET = "rulesets/apex/quickstart.xml";
@Test
void loadDefaultRuleset() {
RuleSet ruleset = rulesetLoader().loadFromResource("rulesets/apex/ruleset.xml");
assertNotNull(ruleset);
}
@Test
void loadQuickstartRuleset() throws Exception {
String log = SystemLambda.tapSystemErr(() -> {

View File

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="33"
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>
This ruleset contains links to rules that are new in PMD v3.3
</description>
<!-- <rule ref="rulesets/java/design.xml/PositionLiteralsFirstInComparisons"/> -->
<rule ref="rulesets/java/design.xml/UnnecessaryLocalBeforeReturn"/>
<rule ref="rulesets/java/logging-jakarta-commons.xml/ProperLogger"/>
<rule ref="rulesets/java/unnecessary.xml/UselessOverridingMethod"/>
<rule ref="rulesets/java/naming.xml/PackageCase"/>
<rule ref="rulesets/java/naming.xml/NoPackage"/>
<rule ref="rulesets/java/strings.xml/UnnecessaryCaseChange"/>
</ruleset>

View File

@ -1,35 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="34"
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>
This ruleset contains links to rules that are new in PMD v3.4
</description>
<rule ref="rulesets/java/basic.xml/ClassCastExceptionWithToArray"/>
<rule ref="rulesets/java/basic.xml/AvoidDecimalLiteralsInBigDecimalConstructor"/>
<rule ref="rulesets/java/design.xml/NonThreadSafeSingleton"/>
<!-- removed with 5.4.0, renamed to UncommentedEmptyMethodBody
<rule ref="rulesets/java/design.xml/UncommentedEmptyMethod"/>
-->
<rule ref="rulesets/java/design.xml/UncommentedEmptyConstructor"/>
<!-- <rule ref="rulesets/java/controversial.xml/DefaultPackage"/>-->
<!-- Removed with 7.0.0 <rule ref="rulesets/java/naming.xml/MisleadingVariableName"/> -->
<rule ref="rulesets/java/migrating.xml/ReplaceVectorWithList"/>
<rule ref="rulesets/java/migrating.xml/ReplaceHashtableWithMap"/>
<rule ref="rulesets/java/migrating.xml/ReplaceEnumerationWithIterator"/>
<rule ref="rulesets/java/migrating.xml/AvoidEnumAsIdentifier"/>
<rule ref="rulesets/java/migrating.xml/AvoidAssertAsIdentifier"/>
<rule ref="rulesets/java/strings.xml/UseStringBufferLength"/>
</ruleset>

View File

@ -1,37 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="35"
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>
This ruleset contains links to rules that are new in PMD v3.5
</description>
<rule ref="rulesets/java/unnecessary.xml/UselessOperationOnImmutable"/>
<rule ref="rulesets/java/basic.xml/MisplacedNullCheck"/>
<rule ref="rulesets/java/unnecessary.xml/UnusedNullCheckInEquals"/>
<rule ref="rulesets/java/strings.xml/AppendCharacterWithChar"/>
<rule ref="rulesets/java/strings.xml/ConsecutiveLiteralAppends"/>
<rule ref="rulesets/java/strings.xml/UseIndexOfChar"/>
<!-- <rule ref="rulesets/java/migrating.xml/IntegerInstantiation"/>-->
<!-- <rule ref="rulesets/java/junit.xml/UseAssertNullInsteadOfAssertTrue"/>-->
<!-- removed with 5.6.0:
<rule ref="rulesets/java/design.xml/AvoidConstantsInterface"/>
-->
<rule ref="rulesets/java/optimizations.xml/UseArraysAsList"/>
<rule ref="rulesets/java/optimizations.xml/AvoidArrayLoops"/>
<!-- removed with 5.4.0:
<rule ref="rulesets/java/controversial.xml/BooleanInversion"/>
-->
</ruleset>

View File

@ -1,27 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="36"
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>
This ruleset contains links to rules that are new in PMD v3.6
</description>
<rule ref="rulesets/java/strings.xml/InefficientEmptyStringCheck"/>
<!-- Removed with 7.0.0 <rule ref="rulesets/java/design.xml/UnsynchronizedStaticDateFormatter"/>-->
<rule ref="rulesets/java/strings.xml/InsufficientStringBufferDeclaration"/>
<!-- <rule ref="rulesets/java/junit.xml/SimplifyBooleanAssertion"/>-->
<rule ref="rulesets/java/basic.xml/AvoidThreadGroup"/>
<rule ref="rulesets/jsp/basic-jsf.xml/DontNestJsfInJstlIteration"/>
<rule ref="rulesets/jsp/basic.xml/NoLongScripts"/>
<rule ref="rulesets/jsp/basic.xml/NoScriptlets"/>
<rule ref="rulesets/jsp/basic.xml/NoInlineStyleInformation"/>
<rule ref="rulesets/jsp/basic.xml/NoJspForward"/>
<rule ref="rulesets/jsp/basic.xml/NoClassAttribute"/>
<rule ref="rulesets/jsp/basic.xml/IframeMissingSrcAttribute"/>
<rule ref="rulesets/jsp/basic.xml/NoHtmlComments"/>
</ruleset>

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="37"
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>
This ruleset contains links to JSP rules that are new in PMD v3.7
</description>
<rule ref="rulesets/jsp/basic.xml/DuplicateJspImports"/>
</ruleset>

View File

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="37"
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>
This ruleset contains links to rules that are new in PMD v3.7
</description>
<rule ref="rulesets/java/design.xml/PreserveStackTrace"/>
<rule ref="rulesets/java/j2ee.xml/UseProperClassLoader"/>
</ruleset>

View File

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="38"
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>
This ruleset contains links to rules that are new in PMD v3.8
</description>
<rule ref="rulesets/java/basic.xml/BrokenNullCheck"/>
<rule ref="rulesets/java/strictexception.xml/AvoidRethrowingException"/>
<!-- <rule ref="rulesets/java/optimizations.xml/UnnecessaryWrapperObjectCreation"/>-->
<rule ref="rulesets/java/strings.xml/UselessStringValueOf"/>
</ruleset>

View File

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="39"
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>
This ruleset contains links to rules that are new in PMD v3.9
</description>
<rule ref="rulesets/java/basic.xml/BigIntegerInstantiation"/>
<rule ref="rulesets/java/basic.xml/AvoidUsingOctalValues"/>
<rule ref="rulesets/java/strings.xml/StringBufferInstantiationWithChar"/>
<rule ref="rulesets/java/codesize.xml/NPathComplexity"/>
<rule ref="rulesets/java/design.xml/UseCollectionIsEmpty"/>
<!-- Removed in 7.0.0: -->
<!-- <rule ref="rulesets/java/codesize.xml/NcssMethodCount"/>-->
<!-- <rule ref="rulesets/java/codesize.xml/NcssTypeCount"/>-->
<!-- <rule ref="rulesets/java/codesize.xml/NcssConstructorCount"/>-->
</ruleset>

View File

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="40rc1"
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>
This ruleset contains links to rules that are new in PMD v4.0rc1
</description>
<!-- <rule ref="rulesets/java/migrating.xml/LongInstantiation"/>-->
<!-- <rule ref="rulesets/java/migrating.xml/ShortInstantiation"/>-->
<!-- <rule ref="rulesets/java/migrating.xml/ByteInstantiation"/>-->
<rule ref="rulesets/java/migrating.xml/JUnit4TestShouldUseBeforeAnnotation"/>
<rule ref="rulesets/java/migrating.xml/JUnit4TestShouldUseTestAnnotation"/>
<rule ref="rulesets/java/migrating.xml/JUnit4TestShouldUseAfterAnnotation"/>
<rule ref="rulesets/java/migrating.xml/JUnit4SuitesShouldUseSuiteAnnotation"/>
<rule ref="rulesets/java/migrating.xml/JUnitUseExpected"/>
<rule ref="rulesets/java/strictexception.xml/DoNotExtendJavaLangError"/>
<rule ref="rulesets/java/j2ee.xml/MDBAndSessionBeanNamingConvention"/>
<rule ref="rulesets/java/j2ee.xml/RemoteSessionInterfaceNamingConvention"/>
<rule ref="rulesets/java/j2ee.xml/LocalInterfaceSessionNamingConvention"/>
<rule ref="rulesets/java/j2ee.xml/LocalHomeNamingConvention"/>
<rule ref="rulesets/java/j2ee.xml/RemoteInterfaceNamingConvention"/>
<rule ref="rulesets/java/optimizations.xml/AddEmptyString"/>
<rule ref="rulesets/java/naming.xml/BooleanGetMethodName"/>
</ruleset>

View File

@ -1,30 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="41"
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>
This ruleset contains links to rules that are new in PMD v4.1
</description>
<rule ref="rulesets/java/basic.xml/AvoidUsingHardCodedIP"/>
<rule ref="rulesets/java/basic.xml/CheckResultSet"/>
<rule ref="rulesets/java/controversial.xml/AvoidAccessibilityAlteration"/>
<!-- Removed with 7.0.0 <rule ref="rulesets/java/controversial.xml/AvoidFinalLocalVariable"/>-->
<rule ref="rulesets/java/controversial.xml/AvoidUsingNativeCode"/>
<!-- <rule ref="rulesets/java/controversial.xml/AvoidUsingShortType"/>-->
<rule ref="rulesets/java/controversial.xml/AvoidUsingVolatile"/>
<rule ref="rulesets/java/design.xml/ClassWithOnlyPrivateConstructorsShouldBeFinal"/>
<rule ref="rulesets/java/design.xml/EmptyMethodInAbstractClassShouldBeAbstract"/>
<!-- Although the rule below is not new, it works quite differently now and merits (re-)consideration -->
<rule ref="rulesets/java/design.xml/SingularField"/>
<rule ref="rulesets/java/imports.xml/TooManyStaticImports"/>
<rule ref="category/java/errorprone.xml/DoNotTerminateVM"/>
<rule ref="rulesets/java/j2ee.xml/DoNotUseThreads"/>
<rule ref="rulesets/java/j2ee.xml/StaticEJBFieldShouldBeFinal"/>
<rule ref="rulesets/java/strings.xml/UseEqualsToCompareStrings"/>
</ruleset>

View File

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="42"
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>
This ruleset contains links to rules that are new in PMD v4.2
</description>
<rule ref="rulesets/java/basic.xml/AvoidMultipleUnaryOperators"/>
<rule ref="rulesets/java/codesize.xml/TooManyMethods"/>
<rule ref="rulesets/java/controversial.xml/DoNotCallGarbageCollectionExplicitly"/>
<!-- <rule ref="rulesets/java/design.xml/ReturnEmptyArrayRatherThanNull"/>-->
<rule ref="rulesets/java/design.xml/AbstractClassWithoutAnyMethod"/>
<rule ref="rulesets/java/design.xml/TooFewBranchesForASwitchStatement"/>
<rule ref="rulesets/java/strictexception.xml/DoNotThrowExceptionInFinally"/>
<rule ref="rulesets/java/strings.xml/AvoidStringBufferField"/>
</ruleset>

View File

@ -1,53 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="50"
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>
This ruleset contains links to rules that are new in PMD v5.0
</description>
<rule ref="rulesets/ecmascript/basic.xml/AssignmentInOperand"/>
<rule ref="rulesets/ecmascript/basic.xml/ConsistentReturn"/>
<rule ref="rulesets/ecmascript/basic.xml/InnaccurateNumericLiteral"/>
<rule ref="rulesets/ecmascript/basic.xml/UnreachableCode"/>
<rule ref="rulesets/ecmascript/basic.xml/EqualComparison"/>
<rule ref="rulesets/ecmascript/basic.xml/GlobalVariable"/>
<rule ref="rulesets/ecmascript/braces.xml/ForLoopsMustUseBraces"/>
<rule ref="rulesets/ecmascript/braces.xml/IfStmtsMustUseBraces"/>
<rule ref="rulesets/ecmascript/braces.xml/IfElseStmtsMustUseBraces"/>
<rule ref="rulesets/ecmascript/braces.xml/WhileLoopsMustUseBraces"/>
<rule ref="rulesets/ecmascript/unnecessary.xml/UnnecessaryParentheses"/>
<rule ref="rulesets/ecmascript/unnecessary.xml/UnnecessaryBlock"/>
<rule ref="rulesets/java/android.xml/CallSuperFirst"/>
<rule ref="rulesets/java/android.xml/CallSuperLast"/>
<rule ref="rulesets/java/basic.xml/CheckSkipResult"/>
<rule ref="rulesets/java/basic.xml/ExtendsObject"/>
<!-- Removed with 7.0.0 <rule ref="rulesets/java/controversial.xml/AvoidPrefixingMethodParameters"/>-->
<rule ref="rulesets/java/controversial.xml/AvoidLiteralsInIfCondition"/>
<rule ref="rulesets/java/controversial.xml/OneDeclarationPerLine"/>
<rule ref="rulesets/java/coupling.xml/LoosePackageCoupling"/>
<rule ref="rulesets/java/coupling.xml/LawOfDemeter"/>
<rule ref="rulesets/java/design.xml/FieldDeclarationsShouldBeAtStartOfClass"/>
<rule ref="rulesets/java/design.xml/LogicInversion"/>
<rule ref="rulesets/java/design.xml/UseVarargs"/>
<rule ref="rulesets/java/design.xml/GodClass"/>
<rule ref="rulesets/java/empty.xml/EmptyInitializer"/>
<rule ref="rulesets/java/empty.xml/EmptyStatementBlock"/>
<rule ref="rulesets/java/imports.xml/UnnecessaryFullyQualifiedName"/>
<rule ref="rulesets/java/junit.xml/JUnitTestContainsTooManyAsserts"/>
<!-- <rule ref="rulesets/java/junit.xml/UseAssertTrueInsteadOfAssertEquals"/>-->
<rule ref="rulesets/java/logging-jakarta-commons.xml/GuardDebugLogging"/>
<rule ref="rulesets/java/naming.xml/ShortClassName"/>
<rule ref="rulesets/java/optimizations.xml/RedundantFieldInitializer"/>
<rule ref="rulesets/java/optimizations.xml/PrematureDeclaration"/>
<rule ref="rulesets/java/strictexception.xml/AvoidCatchingGenericException"/>
<rule ref="rulesets/java/strictexception.xml/AvoidThrowingNewInstanceOfSameException"/>
<rule ref="rulesets/java/unnecessary.xml/UselessParentheses"/>
<rule ref="rulesets/xml/basic.xml/MistypedCDATASection"/>
</ruleset>

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="501"
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>
This ruleset contains links to rules that are new in PMD v5.0.1
</description>
<rule ref="rulesets/ecmascript/basic.xml/AvoidTrailingComma"/>
</ruleset>

View File

@ -1,44 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="510"
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>
This ruleset contains links to rules that are new in PMD v5.1.0
</description>
<rule ref="rulesets/java/logging-jakarta-commons.xml/GuardLogStatement"/>
<rule ref="rulesets/java/logging-java.xml/GuardLogStatementJavaUtil"/>
<rule ref="rulesets/java/comments.xml/CommentRequired"/>
<rule ref="rulesets/java/design.xml/AvoidProtectedMethodInFinalClassNotExtending"/>
<!-- <rule ref="rulesets/java/design.xml/PositionLiteralsFirstInCaseInsensitiveComparisons"/> -->
<rule ref="rulesets/java/strings.xml/ConsecutiveAppendsShouldReuse"/>
<rule ref="rulesets/plsql/codesize.xml/NPathComplexity"/>
<rule ref="rulesets/plsql/codesize.xml/ExcessiveMethodLength"/>
<rule ref="rulesets/plsql/codesize.xml/ExcessiveParameterList"/>
<rule ref="rulesets/plsql/codesize.xml/ExcessiveObjectLength"/>
<rule ref="rulesets/plsql/codesize.xml/ExcessiveTypeLength"/>
<rule ref="rulesets/plsql/codesize.xml/ExcessivePackageBodyLength"/>
<rule ref="rulesets/plsql/codesize.xml/ExcessivePackageSpecificationLength"/>
<rule ref="rulesets/plsql/codesize.xml/CyclomaticComplexity"/>
<rule ref="rulesets/plsql/codesize.xml/TooManyFields"/>
<rule ref="rulesets/plsql/codesize.xml/NcssMethodCount"/>
<rule ref="rulesets/plsql/codesize.xml/NcssObjectCount"/>
<rule ref="rulesets/plsql/dates.xml/TO_DATEWithoutDateFormat"/>
<rule ref="rulesets/plsql/dates.xml/TO_DATE_TO_CHAR"/>
<rule ref="rulesets/plsql/dates.xml/TO_TIMESTAMPWithoutDateFormat"/>
<rule ref="rulesets/plsql/TomKytesDespair.xml/TomKytesDespair"/>
<rule ref="rulesets/vm/basic.xml/AvoidDeeplyNestedIfStmts"/>
<rule ref="rulesets/vm/basic.xml/CollapsibleIfStatements"/>
<rule ref="rulesets/vm/basic.xml/ExcessiveTemplateLength"/>
<rule ref="rulesets/vm/basic.xml/AvoidReassigningParameters"/>
<rule ref="rulesets/vm/basic.xml/EmptyIfStmt"/>
<rule ref="rulesets/vm/basic.xml/EmptyForeachStmt"/>
<rule ref="rulesets/vm/basic.xml/UnusedMacroParameter"/>
<rule ref="rulesets/vm/basic.xml/NoInlineJavaScript"/>
<rule ref="rulesets/vm/basic.xml/NoInlineStyles"/>
</ruleset>

View File

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="512"
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>
This ruleset contains links to rules that are new in PMD v5.1.2
</description>
<!-- Removed with 7.0.0 <rule ref="rulesets/java/codesize.xml/StdCyclomaticComplexity"/>-->
<!-- Removed with 7.0.0 <rule ref="rulesets/java/codesize.xml/ModifiedCyclomaticComplexity"/>-->
</ruleset>

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="520"
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>
This ruleset contains links to rules that are new in PMD v5.2.0
</description>
<rule ref="rulesets/jsp/basic.xml/NoUnsanitizedJSPExpression"/>
</ruleset>

Some files were not shown because too many files have changed in this diff Show More