jborgers / sonar-pmd

☕️ PMD Plugin for SonarQube
https://redirect.sonarsource.com/plugins/pmd.html
GNU Lesser General Public License v3.0
254 stars 154 forks source link

Solve discontinued / deprecated rules #462

Open jborgers opened 2 months ago

jborgers commented 2 months ago

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.