-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[S1161] Enable PMD check MissingOverride
#2403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
32c2936 to
185d432
Compare
|
tried to integrate your feedback @slachiewicz, is this any better? |
185d432 to
382223a
Compare
|
ruleset.xml should have Apache license header |
|
yes of course, thanks. |
382223a to
75eea01
Compare
4bfdc34 to
617fa5c
Compare
617fa5c to
36cef6e
Compare
slachiewicz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not urgent, nice to have. To me it's a manual operation to fix.
As recommended earlier, not worth trying to touch deprecated code/module.
|
Small comment, issue template contains some statements about license and copyright. Please restore the template and agree to terms |
36cef6e to
744300f
Compare
|
fixed |
c067fe5 to
3c35fbc
Compare
493346d to
1673c08
Compare
|
now the math adds up: 141 files in fixes: plus
will finally fix this. add up 144 files in this PR. |
1673c08 to
f00785b
Compare
043ab34 to
3647be1
Compare
23b62c2 to
3f330dc
Compare
3f330dc to
2dbe9a8
Compare
2dbe9a8 to
6493deb
Compare
adangel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the title should be just "Enable PMD check MissingOverride"?
MissingOverride
5a1fe5a to
a7d1632
Compare
Pankraz76
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats good default value for analysisCacheLocation?
pom.xml
Outdated
| <analysisCache>true</analysisCache> | ||
| <analysisCacheLocation>${maven.multiModuleProjectDirectory}/.pmd/.cache</analysisCacheLocation> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <analysisCache>true</analysisCache> | |
| <analysisCacheLocation>${maven.multiModuleProjectDirectory}/.pmd/.cache</analysisCacheLocation> | |
| <analysisCache>true</analysisCache> | |
| <analysisCacheLocation>${maven.multiModuleProjectDirectory}/.pmd/.cache</analysisCacheLocation> |
would give here CoC value as well, to avoid confusion.
is central cache good or better dedicated to each module.
Having both variants implied, so one way is wrong already, as done different, assuming this valid as not mentioned by you @adangel.
Giving nifty default value to analysisCacheLocation wont hurt, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The defaults are documented in the documentation (surprise!) https://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#analysisCache
Not sure, what "maven.multiModuleProjectDirectory" would resolve to - probably to the same directory for every single module. Hence this config probably results in overwriting the cache file on every run - and the cache is useless.
Did you try whether the cache is working? Running "./mvnw clean verify" and again "./mvnw verify" (without clean) and comparing the timings of the pmd plugin?
The default value seems to be more sensible, as it uses a cache file per module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a7d1632 to
bc4b52c
Compare
bc4b52c to
d019b9c
Compare
|
striving in chaos. |



Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[MNG-XXX] SUMMARY,where you replace
MNG-XXXandSUMMARYwith the appropriate JIRA issue.[MNG-XXX] SUMMARY.Best practice is to use the JIRA issue title in both the pull request title and in the first line of the commit message.
mvn clean verifyto make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.