Skip to content

[core] Merge PmdAnalysis into pmd/7.0.x#3819

Merged
adangel merged 93 commits into
pmd:pmd/7.0.xfrom
oowekyala:pmd7-merge-master
Mar 10, 2022
Merged

[core] Merge PmdAnalysis into pmd/7.0.x#3819
adangel merged 93 commits into
pmd:pmd/7.0.xfrom
oowekyala:pmd7-merge-master

Conversation

@oowekyala

@oowekyala oowekyala commented Mar 4, 2022

Copy link
Copy Markdown
Member

Describe the PR

Merge master into pmd/7.0.x, as #3785 and #3692 conflict a lot. I removed most of the deprecated members of PMD.java because they're impossible to maintain (processFiles is kept for compatibility with mvn pmd plugin, but it should be updated to use PmdAnalysis after PMD 6.44.0 is out).

Please look at the last commits for what happened after the merge.

Note that this contains #3822.

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)

Test cases use SObjectField and FieldDescribeOptions
I don't think it's worth removing it in master...
Traces could admittedly be reported on a jutil.Logger,
but this makes the code unreadable and it's not
clear why we would do that. Other things like
warnings and errors will be reported through
this interface in pmd 7, so it also doesn't
make sense to update their call sites.
which deals with restoring System.out/err already
@oowekyala oowekyala changed the title [core] merge master [core] Merge PmdAnalysis into pmd/7.0.x Mar 5, 2022

@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 for doing the merge!
It was a bit difficult to review - but now I think I understand how GlobalAnalysisListener fits into the picture. At some point, we might add a usage sample in the java api doc.

Btw. this PR is still in draft - is it ready?

Comment thread docs/pages/pmd/userdocs/tools/java-api.md
Comment thread pmd-core/src/main/java/net/sourceforge/pmd/PmdAnalysis.java
@oowekyala

Copy link
Copy Markdown
Member Author

Btw. this PR is still in draft - is it ready?

It is, I forgot to update it

@oowekyala oowekyala marked this pull request as ready for review March 9, 2022 18:55
adangel added a commit that referenced this pull request Mar 10, 2022
[core] Merge PmdAnalysis into pmd/7.0.x #3819
@adangel adangel merged commit 4160092 into pmd:pmd/7.0.x Mar 10, 2022
@oowekyala oowekyala deleted the pmd7-merge-master branch March 10, 2022 09:54
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
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.

3 participants