Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve discontinued / deprecated rules #462

Open
jborgers opened this issue Apr 30, 2024 · 0 comments
Open

Solve discontinued / deprecated rules #462

jborgers opened this issue Apr 30, 2024 · 0 comments

Comments

@jborgers
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant