Replies: 2 comments
-
|
Sorry I'm seeing this so late. Pmd already has support to analyze pom files https://pmd.github.io/latest/pmd_rules_pom.html So I'm unsure what you are trying to achieve. |
Beta Was this translation helpful? Give feedback.
-
|
You are probably suffering from this problem: #1540 Since PMD 6.37.0 there is a workaround with pmd-bin-6.50.0/bin/run.sh pmd -d pom.xml -f text -R category/pom/errorprone.xml/ProjectVersionAsDependencyVersion --force-language pomYou'll need to mention the pom.xml files explicitly (just giving a directory doesn't work as PMD would search for *.pom files...) and add the "--force-language pom" option. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to expand pmd to analyse pom.xml recently,but it actually not work,it seems to work on java file.I use XmlXPathRule class,who can give a advice?
Beta Was this translation helpful? Give feedback.
All reactions