slawekjaranowski commented on PR #794:
URL: https://github.com/apache/maven-pmd-plugin/pull/794#issuecomment-7436191746

   The `@since` tags of the parameters the check goals get in this PR are 
inconsistent. In the plugin descriptor of `check` / `cpd-check` (and their 
aggregate variants) all of these parameters are new in 3.29.0, but some of them 
carry the version from the report goals:
   
   | Parameter (`AbstractPmdAnalysisMojo`) | current `@since` | suggested |
   |---|---|---|
   | `includes`, `excludes`, `excludeRoots`, `includeTests` | 2.2 | 3.29.0 |
   | `compileSourceRoots`, `testSourceRoots` | 3.7 | 3.29.0 |
   | `jdkToolchain` | 3.14.0 | 3.29.0 |
   | `format`, `inputEncoding`, `outputEncoding` | missing | 3.29.0 |
   
   The parameters added directly in `PmdViolationCheckMojo` / 
`CpdViolationCheckMojo` (`targetJdk`, `rulesets`, `minimumTokens`, ...) already 
use 3.29.0, so only `AbstractPmdAnalysisMojo` needs to be aligned. It is only 
extended by the check goals; the report goals keep their own copies of these 
parameters in `AbstractPmdReport`, so the report documentation is not affected.
   
   The parameters that already existed on the check goals before this PR should 
keep their versions: `aggregate` (2.2), `excludeFromFailureFile` (3.0), 
`targetDirectory`.
   
   Otherwise the generated `check-mojo.html` / `cpd-check-mojo.html` will 
suggest that e.g. `includes` has been available on `check` since 2.2.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to