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 3

This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.

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.
41f10c675562a2342ac450bddebb05f159f046cb David Trowbridge
bot/reviewbot/tools/pmd.py
bot/reviewbot/tools/testing/testcases.py
bot/reviewbot/tools/tests/test_pmd.py
Loading...