Update the PMD code, docs, configuration, and tests for the latest changes.
Review Request #11530 — Created March 16, 2021 and submitted
PMD has been updated to use the renamed
BaseToolclass and to take
advantage of the new dependency management, to simplify code.As part of this, configuration has become standardized, allowing the
pmdtool path to be located on the fileystem (if in$PATH) or
configured in the worker'sexe_pathssetting. This has the additional
small benefit of caching thepmdbinary path, so it doesn't have to be
looked up in$PATHat execution time.The old
pmd_pathsetting has been deprecated. It will be transitioned
over when loading the configuration. Documentation has been updated to
discuss this.The list of file extensions are now more forgiving. Extra commas, spaces,
and leading.for file extensions are handled correctly.The documentation has been fleshed out to go over the fields present
during tool configuration.Unit tests have been added for
handle_file(), to give us a base for
future work and to ensure that the cachedpmdpath is being used.
Unit tests pass.
Tested dependency checking in the worker, with
pmdin the$PATH
and with an explicit path provided inexe_paths.Built the docs. Checked for build errors, spelling errors, and bad links.
| Summary | ID |
|---|---|
| eeb5b24cf4fadf0961a3b4b5b513f0f82d3c7cc7 |
| Description | From | Last Updated |
|---|---|---|
|
F401 'reviewbot.config.config' imported but unused |
|
|
|
F811 redefinition of unused 'config' from line 9 |
|
|
|
F811 redefinition of unused 'config' from line 9 |
|
|
|
F841 local variable 'review' is assigned to but never used |
|
|
|
F841 local variable 'review' is assigned to but never used |
|
|
|
F811 redefinition of unused 'config' from line 9 |
|
- Change Summary:
-
Removed unused imports and variables in
test_pmd.py. - Commits:
-
Summary ID 25503f21661aa2ff863044d220892c6dd3b5272a 4dc0827bf96d95d3521d5ce73b48b858cfae88ad
Checks run (2 succeeded)
- Change Summary:
-
Updated the file extension handling support to set the new
file_patterns. - Description:
-
PMD has been updated to use the renamed
BaseToolclass and to takeadvantage of the new dependency management, to simplify code. As part of this, configuration has become standardized, allowing the
pmdtool path to be located on the fileystem (if in$PATH) orconfigured in the worker's exe_pathssetting. This has the additionalsmall benefit of caching the pmdbinary path, so it doesn't have to belooked up in $PATHat execution time.The old
pmd_pathsetting has been deprecated. It will be transitionedover when loading the configuration. Documentation has been updated to discuss this. + The list of file extensions are now more forgiving. Extra commas, spaces,
+ and leading .for file extensions are handled correctly.+ The documentation has been fleshed out to go over the fields present
during tool configuration. Unit tests have been added for
handle_file(), to give us a base forfuture work and to ensure that the cached pmdpath is being used. - Commits:
-
Summary ID 4dc0827bf96d95d3521d5ce73b48b858cfae88ad 995e0bebb540edd92329bcb69ff466738cf0150d