ruleset xml arguments #3551
-
Will you be able to help me with defining the required arguments to new PMD version. The links by default seems old and URL s not working. I am using the rules appears on this new version (PMD https://pmd.github.io/latest/index.html), seems it is PMD 6.39.0. Could you please help me with the arguments that I should pass to below? xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" Thanks very much !! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Which error do you get and which URL exactly is not working? |
Beta Was this translation helpful? Give feedback.
-
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).
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. |
Beta Was this translation helpful? Give feedback.
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).
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