[core] Support sharing properties across mutliple rules
A source code analyzer
Brought to you by:
adangel,
juansotuyo
At the moment I need to specify duplciate violationSuppressXPath properties for multiple rules.
Ideally I would like to declare the properties once in a rule set then reference the properties from each rule where I would like to apply them (like path references in ant build.xml).
Otherwise another option would be to support properties being appled for all rules within a xml set.
e.g.
<rule ref="rulesets/java/codesize.xml">
<properties>
<property name="violationSuppressXPath"
value="//MethodDeclarator[@Image='equals'] | //MethodDeclarator[@Image='hashCode']"/>
</properties>
</rule>
instead of having to declare the properties for every rule within codesize.xml
Replaced by https://github.com/pmd/pmd/issues/4331