Skip to content

[java] Usage resolution for java variables#3113

Merged
adangel merged 61 commits into
pmd:pmd/7.0.xfrom
oowekyala:java-usage-resolver
Feb 19, 2021
Merged

[java] Usage resolution for java variables#3113
adangel merged 61 commits into
pmd:pmd/7.0.xfrom
oowekyala:java-usage-resolver

Conversation

@oowekyala

@oowekyala oowekyala commented Feb 13, 2021

Copy link
Copy Markdown
Member

Describe the PR

Reimplement variable usage resolution for Java in PMD 7. The implementation is trivial (see InternalApiBridge) as all the work is already done by the new symbol table. This brings the newer symbol table to feature parity with the old and allows porting more rules.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by travis)
  • Added (in-code) documentation (if needed)

@oowekyala oowekyala added this to the 7.0.0 milestone Feb 13, 2021
@ghost

ghost commented Feb 13, 2021

Copy link
Copy Markdown
2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 96185 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
📖 Compared to master:
This changeset changes 1912 violations,
introduces 5790 new violations, 1 new errors and 0 new configuration errors,
removes 15122 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 96185 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 1 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 1912 violations,
introduces 5790 new violations, 1 new errors and 0 new configuration errors,
removes 15122 violations, 10 errors and 2 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 0 violations,
introduces 96185 new violations, 269 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 1912 violations,
introduces 5790 new violations, 271 new errors and 0 new configuration errors,
removes 15122 violations, 10 errors and 2 configuration errors.
Full report

Generated by 🚫 Danger

@adangel adangel self-requested a review February 19, 2021 10:39

@adangel adangel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, looks good! I'll merge it later today.

Comment thread .ci/files/all-java.xml Outdated
@adangel adangel self-assigned this Feb 19, 2021
adangel added a commit that referenced this pull request Feb 19, 2021
[java] Usage resolution for java variables #3113
@adangel adangel merged commit fb673d7 into pmd:pmd/7.0.x Feb 19, 2021
@oowekyala oowekyala deleted the java-usage-resolver branch February 19, 2021 19:51
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
jsotuyod added a commit to jsotuyod/pmd that referenced this pull request Aug 24, 2024
 - Improving the constant folder allows other rules to work better
 - Fixes pmd#3602
 - Curiously, InefficientStringBuffering has been broken since PMD 7.0.0
   (regression introduced in pmd#3113)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants