-
Notifications
You must be signed in to change notification settings - Fork 13
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
update PMD ruleset.xml #2317
update PMD ruleset.xml #2317
Conversation
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.
Looks good to me. All the rules that were defined in the PDM sessions are included.
<rule ref="category/java/bestpractices.xml/NonExhaustiveSwitch"/> | ||
<!-- TODO: Create PR to fix this rule --> | ||
<!-- | ||
<rule ref="category/java/bestpractices.xml/SystemPrintln" /> |
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.
We had defined exceptions, perhaps they should be defined directly here or a general 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.
This is up to the PR to enable the rule and implement exceptions in the class
Just as an info: Codacy fails with
Container Looking in the latest revision of the build file reveals that by default version The last commit there has the following message: "Revert PMD to version 6. Version 7 will be launched as a different tool" Indeed, there is https://github.com/codacy/codacy-pmd7. We might need to switch. Not sure how to configure the PMD tool used by the Codacy service and the PMD version used by that tool, since even that version, by default, only uses version 7.6.0 of PMD. |
There is also a problem with ESLint for JavaScript/TypeScript that also effects other PRs targeting
Not sure what that is about, ... |
We could in theory kill Codacy as our rules are now active for the current ruleset and every new rule has to applied to the then present code before getting activated. So in theory every code that is submitted will fail the build because we check all the code everytime not only the changed code. So practically ther should be no need for Codacy if it's performing the same checks. |
I switched Codacy to the PMD7 module, but it still fails as ESLint does. I would recommend to deactivate PMD7 until it is updated to at least 7.7.0. For ESLint: the error is that config files are missing. Seems to have no link to this PR. |
Removing PMD from Codacy seem reasonable, Yes, the ESLint problem seems to be independent from this PR, as it, as I said, effects all PRs targeting |
Deactivating PMD7 was enough to make Codacy successful again |
Link to PMD rules agreement.