GeezerVison is showing github.com — [doc] Update ruleset examples for ant by pzygielo · Pull Request #2344 · pmd/pmd
Conversation
pzygielo
commented
Mar 8, 2020
•
edited by adangel
Loading
Uh oh!
There was an error while loading. Please reload this page.
Before submitting a PR, please check that:
- The PR is submitted against
master. The PMD team will merge back to support branches as needed.
-
./mvnw clean verify passes. This will build and test PMD, execute PMD and checkstyle rules. Check this for more info
PR Description:
Avoid:
Use Rule name category/java/bestpractices.xml/ConstantsInInterface
instead of the deprecated Rule name rulesets/java/design.xml/ConstantsInInterface.
PMD 7.0.0 will remove support for this deprecated Rule name usage.
Doc page, that is being updated:
https://pmd.github.io/latest/pmd_userdocs_tools_ant.html
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
1 Message
|
| 📖 |
No java rules are changed! |
Generated by 🚫 Danger
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Thanks for a good idea. But we strongly recommend that users don't include whole categories at a time, but instead create their own ruleset early on. The quickstart.xml ruleset is a base starting point, independent of categories
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Avoid:
Use Rule name category/java/bestpractices.xml/ConstantsInInterface instead of the deprecated Rule name rulesets/java/design.xml/ConstantsInInterface. PMD 7.0.0 will remove support for this deprecated Rule name usage.
pzygielo
changed the title
Replace rulesets/... with category/...
Replace deprecated rulesets/...
Mar 9, 2020
adangel
changed the title
Replace deprecated rulesets/...
[doc] Replace deprecated rulesets/...
Mar 12, 2020
adangel
changed the title
[doc] Replace deprecated rulesets/...
[doc] Update ruleset usage example in ant
Mar 12, 2020
adangel
changed the title
[doc] Update ruleset usage example in ant
[doc] Update ruleset examples for ant
Mar 12, 2020
Reviewers
adangel
adangel left review comments
oowekyala
Awaiting requested review from oowekyala
Uh oh!
There was an error while loading. Please reload this page.
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.