I work with the version 3.3 of Maven PMD Plugin. It uses PMD 5.2.1.
With this pluging, the avaible rule sets are defined by:
- net.sourceforge.pmd:pmd-core
- net.sourceforge.pmd:pmd-java
- net.sourceforge.pmd:pmd-javascript
- net.sourceforge.pmd:pmd-jsp
I was able to define a custom rule set file using some of those rule sets :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${pmd.maven.version}</version>
<configuration>
<skip>${skip.pmd}</skip>
<!--
<targetJdk>${maven.compiler.target}</targetJdk>
-->
<linkXRef>true</linkXRef>
<aggregate>false</aggregate>
<skipEmptyReport>false</skipEmptyReport>
<failOnViolation>true</failOnViolation>
<includeXmlInSite>true</includeXmlInSite>
<rulesets>
<ruleset>${project.parent.basedir}/../build-config/src/main/resources/docsite/build/config/pmd-java.xml</ruleset>
</rulesets>
</configuration>
<dependencies>
</plugin>
Now I'd like to add the rule sets defined by:
- net.sourceforge.pmd:pmd-vm
- net.sourceforge.pmd:pmd-xml
The pages:
- Using Rule Sets http://ift.tt/1vLFB2D
- Analyzing JavaScript Code http://ift.tt/1yM4ICl
seem outdated and didn't help.
Any help will be appreciated.
No comments:
Post a Comment