Skip to content

[doc] Include deprecated rule references in documentation (Fixes #2823)#2824

Merged
adangel merged 3 commits into
pmd:masterfrom
adangel:issue-2823
Oct 22, 2020
Merged

[doc] Include deprecated rule references in documentation (Fixes #2823)#2824
adangel merged 3 commits into
pmd:masterfrom
adangel:issue-2823

Conversation

@adangel

@adangel adangel commented Oct 10, 2020

Copy link
Copy Markdown
Member

Describe the PR

There was no possibility yet to create a RuleSetFactory that would load deprecated rule references. These were always
ignored, which is correct for the default case. But for generating documentation, we want to have the complete "raw"
ruleset.

This adds one more public method to RulesetsFactoryUtils with an additional flag.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by travis)
  • Added (in-code) documentation (if needed)

This reverts commit ec2b3d8.
Uses the pattern documented in rule deprecation policy.
The rule reference should be deprecated to get a deprecation
warning, if it is still used.
Include deprecated rule references conditionally
when loading rulesets via RuleSetFactory
@adangel adangel added this to the 6.29.0 milestone Oct 10, 2020
@ghost

ghost commented Oct 10, 2020

Copy link
Copy Markdown
1 Message
📖 This changeset introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report

Generated by 🚫 Danger

@adangel adangel added the in:documentation Affects the documentation [doc] label Oct 15, 2020
@adangel adangel self-assigned this Oct 22, 2020
@adangel adangel merged commit 1152379 into pmd:master Oct 22, 2020
@adangel adangel deleted the issue-2823 branch October 22, 2020 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:documentation Affects the documentation [doc]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[doc] Renamed/Moved rules are missing in documentation

1 participant