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

Migrate java rules to pmd 7.x.x #309

Closed
emouty opened this issue May 14, 2024 · 3 comments
Closed

Migrate java rules to pmd 7.x.x #309

emouty opened this issue May 14, 2024 · 3 comments
Assignees

Comments

@emouty
Copy link

emouty commented May 14, 2024

Because of breaking changes introduced with pmd 7.x.x, the java ruleset can't be used with this new version.

The main error I've seen is from the package migration of net.sourceforge.pmd.lang.rule.XPathRule to net.sourceforge.pmd.lang.rule.xpath.XPathRule, but there could be other errors.

It could be nice to migrate the rulesets to be compatible with this new major version

@jborgers jborgers self-assigned this May 14, 2024
@jborgers
Copy link
Owner

Hi, thanks for reporting. We are aware of it. This needs quite some time to migrate the rules to 7. We are figuring out how to do this.

@jborgers jborgers changed the title Update java rules to pmd 7.x.x Migrate java rules to pmd 7.x.x Jul 25, 2024
@jborgers
Copy link
Owner

jborgers commented Jul 25, 2024

The AST provided by PMD7 is incompatible with the one of PMD6. It actually has a lot of structural changes. The xpath expression of each rule needs to be migrated.

Working on branch pmd7-upgrade-7.2.0

jborgers added a commit that referenced this issue Jul 25, 2024
…nd 4: AvoidConstantsInInterface, AvoidDecimalAndChoiceFormatAsField, AvoidDuplicateAssignmentsInCases
jborgers added a commit that referenced this issue Jul 26, 2024
jborgers added a commit that referenced this issue Jul 29, 2024
jborgers added a commit that referenced this issue Aug 1, 2024
jborgers added a commit that referenced this issue Aug 2, 2024
jborgers added a commit that referenced this issue Aug 2, 2024
jborgers added a commit that referenced this issue Aug 8, 2024
jborgers added a commit that referenced this issue Aug 9, 2024
jborgers added a commit that referenced this issue Aug 9, 2024
jborgers added a commit that referenced this issue Aug 9, 2024
jborgers added a commit that referenced this issue Aug 12, 2024
jborgers added a commit that referenced this issue Aug 13, 2024
jborgers added a commit that referenced this issue Aug 15, 2024
jborgers added a commit that referenced this issue Aug 15, 2024
…sWarnings and UsingSuppressWarningsHighRisk
jborgers added a commit that referenced this issue Aug 30, 2024
rule number 24: AvoidTimeUnitConfusion
jborgers added a commit that referenced this issue Sep 2, 2024
rule number 25: FieldOfHashCodeMissingInEquals
jborgers added a commit that referenced this issue Sep 2, 2024
rule number 25: MissingFieldInEquals
jborgers added a commit that referenced this issue Sep 2, 2024
rule number 27: MissingFieldInHashCode
stokpop added a commit that referenced this issue Oct 20, 2024
jborgers added a commit that referenced this issue Oct 23, 2024
jborgers added a commit that referenced this issue Oct 30, 2024
jborgers added a commit that referenced this issue Oct 31, 2024
jborgers added a commit that referenced this issue Nov 1, 2024
jborgers added a commit that referenced this issue Nov 1, 2024
jborgers added a commit that referenced this issue Nov 1, 2024
jborgers added a commit that referenced this issue Nov 1, 2024
…er: MissingEqualsAndHashCodeWithGetterSetter incl all fixes
jborgers added a commit that referenced this issue Nov 1, 2024
@jborgers
Copy link
Owner

Migration is done, except for #476

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

2 participants