Deduplicate PMD rule references

MSAL

Merges duplicate references to individual rules in PMD ruleset XML files, keeping the last reference's position and combining explicit configuration. Values explicitly configured in later references take precedence for conflicting properties, attributes, descriptions and priorities. Whole-ruleset imports are left alone because their exclusions may enable different rules.

org.openrewrite.java.pmd.DeduplicatePmdRules
mod run . --recipe=org.openrewrite.java.pmd.DeduplicatePmdRules

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.