Skip to content

ruleset xml arguments #3551

Answered by adangel
Research-SE-Otago asked this question in Q&A
Oct 13, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

No, "http://pmd.sourceforge.net/ruleset/2.0.0" is not a URL, it's just a URI. This is the namespace. The XML schema is located at http://pmd.sourceforge.net/ruleset_2_0_0.xsd (which redirects to https://pmd.sourceforge.io/ruleset_2_0_0.xsd).

updated PMD (i.e., 6.39.0) rule set

The above xml prolog only specifies the format (namespace, schema). There is no "updated PMD rule set".

You can start with the quickstart ruleset and modify this or create a new ruleset as described in Making rulesets.
It's your decision, which rules you enable. Available rules can be found here: https://pmd.github.io/latest/pmd_rules_java.html

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Research-SE-Otago
Comment options

Comment options

You must be logged in to vote
1 reply
@Research-SE-Otago
Comment options

Answer selected by adangel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants