Skip to content

[core] Improve PmdAnalysis#3822

Merged
adangel merged 24 commits into
pmd:masterfrom
oowekyala:pmd6-improve-pmd-analysis
Mar 10, 2022
Merged

[core] Improve PmdAnalysis#3822
adangel merged 24 commits into
pmd:masterfrom
oowekyala:pmd6-improve-pmd-analysis

Conversation

@oowekyala

@oowekyala oowekyala commented Mar 5, 2022

Copy link
Copy Markdown
Member

Describe the PR

Followup on #3785. I noticed while merging (#3819) that an incomplete PMDConfiguration could cause NPEs in PmdAnalysis::create. I'm adding tests and something to create new rulesets. I think it's easier to expose a RuleSetLoader, as we can't move all the methods of that class onto PmdAnalysis. I also checked out a change to PMDConfiguration that was already done in PMD 7 (methods there are @DeprecatedUntil700).

Of note: PmdLogger is renamed to MessageReporter (as per #3816 it's not for logging)

These changes have been incorporated into #3819 and informed by what's going on in the PMD 7 branch for better compatibility.

Related issues

  • Fixes #

Ready?

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

@oowekyala oowekyala added this to the 6.44.0 milestone Mar 5, 2022
This interacts better with RuleSetLoader methods
@oowekyala oowekyala force-pushed the pmd6-improve-pmd-analysis branch from 509c9fa to 4d143eb Compare March 5, 2022 12:39
@ghost

ghost commented Mar 5, 2022

Copy link
Copy Markdown
1 Message
📖 This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
This changeset changes 86 violations,
introduces 1 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
This changeset changes 86 violations,
introduces 1 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
This changeset changes 86 violations,
introduces 1 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report

Generated by 🚫 Danger

@adangel adangel changed the title [core] improve PmdAnalysis [core] Improve PmdAnalysis Mar 8, 2022
@adangel adangel linked an issue Mar 8, 2022 that may be closed by this pull request

@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.

Looks good. I think, we should update the release notes to mention #3299 when merging.

Comment thread docs/pages/pmd/userdocs/tools/java-api.md
Comment thread pmd-core/src/main/java/net/sourceforge/pmd/PmdAnalysis.java
Comment thread pmd-core/src/main/java/net/sourceforge/pmd/PmdAnalysis.java Outdated
adangel added a commit that referenced this pull request Mar 10, 2022
adangel added a commit to adangel/pmd that referenced this pull request Mar 10, 2022
@adangel adangel merged commit d8c9401 into pmd:master Mar 10, 2022
@oowekyala oowekyala deleted the pmd6-improve-pmd-analysis branch March 10, 2022 09:54
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.

[core] Deprecate system properties of PMDCommandLineInterface

2 participants