sonar-pmd icon indicating copy to clipboard operation
sonar-pmd copied to clipboard

Solve discontinued / deprecated rules

Open jborgers opened this issue 2 months ago • 0 comments

In Sonar 10.5, pmd logging shows more than before:

[INFO] SonarQube version: 10.5.0.89998
..
[INFO] Sensor PmdSensor [pmd]
[INFO] Execute PMD 6.55.0
[WARNING] Requested Java version 21 ('sonar.java.source') is not supported by PMD. Using maximum supported version: 20-preview.
[INFO] Java version: 20-preview
[INFO] PMD configuration: /Users/me/proj/bk-services/target/sonar/pmd.xml
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Use Rule name category/java/errorprone.xml/NonSerializableClass instead of the deprecated Rule name category/java/errorprone.xml/BeanMembersShouldSerialize. PMD 7.0.0 will remove support for this deprecated Rule name usage.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Discontinue using Rule name category/java/performance.xml/ShortInstantiation as it is scheduled for removal from PMD. PMD 7.0.0 will remove support for this Rule.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Discontinue using Rule name category/java/performance.xml/ByteInstantiation as it is scheduled for removal from PMD. PMD 7.0.0 will remove support for this Rule.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: The rule GuardLogStatement is referenced multiple times in "pmd". Only the last rule configuration is used.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Discontinue using Rule name category/java/codestyle.xml/AvoidFinalLocalVariable as it is scheduled for removal from PMD. PMD 7.0.0 will remove support for this Rule.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: The rule GuardLogStatement is referenced multiple times in "pmd". Only the last rule configuration is used.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Discontinue using Rule name category/java/performance.xml/IntegerInstantiation as it is scheduled for removal from PMD. PMD 7.0.0 will remove support for this Rule.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Discontinue using Rule name category/java/performance.xml/AvoidUsingShortType as it is scheduled for removal from PMD. PMD 7.0.0 will remove support for this Rule.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Use Rule name category/java/errorprone.xml/ComparisonWithNaN instead of the deprecated Rule name category/java/errorprone.xml/BadComparison. PMD 7.0.0 will remove support for this deprecated Rule name usage.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Discontinue using Rule name category/java/performance.xml/LongInstantiation as it is scheduled for removal from PMD. PMD 7.0.0 will remove support for this Rule.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Discontinue using Rule name category/java/performance.xml/SimplifyStartsWith as it is scheduled for removal from PMD. PMD 7.0.0 will remove support for this Rule.
Apr 29, 2024 7:11:35 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Discontinue using Rule name category/java/performance.xml/BooleanInstantiation as it is scheduled for removal from PMD. PMD 7.0.0 will remove support for this Rule.
Apr 29, 2024 7:11:36 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: The rule UnnecessaryModifier is referenced multiple times in "pmd". Only the last rule configuration is used.
Apr 29, 2024 7:11:36 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Discontinue using Rule name category/java/codestyle.xml/DefaultPackage as it is scheduled for removal from PMD. PMD 7.0.0 will remove support for this Rule.
Apr 29, 2024 7:11:36 PM net.sourceforge.pmd.RuleSetFactory parseRuleReferenceNode
WARNING: Discontinue using Rule name category/java/errorprone.xml/DataflowAnomalyAnalysis as it is scheduled for removal from PMD. PMD 7.0.0 will remove support for this Rule.

jborgers avatar Apr 30 '24 10:04 jborgers