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

Merge pmd-7-pmd7 branch into master #494

Merged
merged 34 commits into from
Feb 24, 2025
Merged

Merge pmd-7-pmd7 branch into master #494

merged 34 commits into from
Feb 24, 2025

Conversation

jborgers
Copy link
Owner

Merge for release 4.0.0 (pmd7-release)

jborgers and others added 30 commits October 29, 2021 11:22
…deprecated and removed rules. There are also rules with alternatives, so it is probably better to check which ones can be replaced by the new alternative rules.
…Short" to test pmd-7.0 with kotlin in pmd-sonar plugin; upped some dependencies
…directory; to be able to run it next to pmd(6) in Sonar
…nar-pmd7-plugin back to sonar-pmd-plugin to avoid merge issues in future
- correct rule definitions for pmd7
# Conflicts:
#	docs/RULES.md
#	integration-test/pom.xml
#	pom.xml
…330, upped maven wrapper to 3.8.4, made Integration Tests more robust
Doing so, migration to PMD7 compatible sonar-pmd plugin will keep the mapping to existing SonarQube issues, plus the PMD7 plugin is recognized as a new version of previous PMD6 based `pmd` plugin.
…narsource plugins have java 17 compiled classes.
@jborgers jborgers requested a review from stokpop February 24, 2025 09:48
Copy link
Collaborator

@stokpop stokpop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we remove all references to old pmd7 rules that are removed?

maybe turn headers into PMD instead of PMD7?

<priority>MAJOR</priority>
<parameters/>
</rule>
<!-- <rule>-->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we remove these instead of commenting out?

<priority>MAJOR</priority>
<parameters/>
</rule>
<!-- <rule>-->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

<priority>MAJOR</priority>
<parameters/>
</rule>
<!-- <rule>-->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

<priority>MAJOR</priority>
<parameters/>
</rule>
<!-- <rule>-->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

<priority>CRITICAL</priority>
<parameters/>
</rule>
<!-- <rule>-->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

@@ -1,5 +1,5 @@
/*
* SonarQube PMD Plugin
* SonarQube PMD7 Plugin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use PMD7 here? It is still the SonarQube PMD plugin... maybe for 8+ in future

}
}

// @Override
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

<txt>min</txt>
</prop>
</chc>
<!-- <chc>-->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

<txt>h</txt>
</prop>
</chc>
<!-- NOTE: the following rule has been removed in pmd-7 -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove? (and some more commented out rules below)

"UseAssertNullInsteadOfAssertTrue",
"SimplifyBooleanAssertion",
"UseAssertTrueInsteadOfAssertEquals",
//"UseAssertEqualsInsteadOfAssertTrue", // 5 rules have been removed in pmd-7
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

@jborgers
Copy link
Owner Author

Created issue #495 to deal with your remarks. Will be in a follow-up minor releases.

@jborgers jborgers merged commit 51d5c64 into master Feb 24, 2025
3 checks passed
@jborgers jborgers deleted the pmd-7-pmd7 branch February 24, 2025 10:15
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

Successfully merging this pull request may close these issues.

4 participants