Add support for PMD 7.

Review Request #13710 — Created April 5, 2024 and submitted — Latest diff uploaded

Information

ReviewBot
release-4.x

Reviewers

PMD just released a big new major version, 7.0.0. This makes a fairly
large change to the basic command-line UI, but is mostly otherwise
compatible.

Some of the output is slightly different for a few of the tests. I've
changed the simulation tests to simulate PMD7, and the integration tests
sometimes need to conditionalize the expected output. We also had one
test (for a config file with no rules) that was obsolete even in PMD
6.55, which treated a file with no active rules as a warning rather than
an error.

Ran unit tests with both PMD 6.55.0 and 7.0.0. Saw that everything
passed.

Diff Revision 4 (Latest)

orig
1
2
3
4

Commits

First Last Summary ID Author
Add support for PMD 7.
PMD just released a big new major version, 7.0.0. This makes a fairly large change to the basic command-line UI, but is mostly otherwise compatible. Some of the output is slightly different for a few of the tests. I've changed the simulation tests to simulate PMD7, and the integration tests sometimes need to conditionalize the expected output. We also had one test (for a config file with no rules) that was obsolete even in PMD 6.55, which treated a file with no active rules as a warning rather than an error. Testing Done: Ran unit tests with both PMD 6.55.0 and 7.0.0. Saw that everything passed. Reviewed at https://reviews.reviewboard.org/r/13710/
2e2681f5f5f49cf44c94abb26152cafa9c63bd23 David Trowbridge
bot/reviewbot/tools/pmd.py
bot/reviewbot/tools/testing/testcases.py
bot/reviewbot/tools/tests/test_pmd.py
Loading...