Overview

Introduction

This module provides a single library with a somewhat paranoid, but appropriate for modern development PMD configuration which can be in turn used as a dependency for the maven-pmd-plugin.

What's included

The rulesets defined in this project include, the following standard rulesets and configurations:

Usage

Until this artifact is hosted somewhere centrally, you'll need to check it out, and install it locally via the standard "mvn install" command. Something like:

$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building pmd-configuration 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.742s
[INFO] Finished at: Mon May 21 21:21:52 EST 2012
[INFO] Final Memory: 4M/81M
[INFO] ------------------------------------------------------------------------

Once that is done, you can then use this module as a dependency for the PMD plugin:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-pmd-plugin</artifactId>
    <dependencies>
        <dependency>
            <groupId>ph.hum</groupId>
            <artifactId>pmd-configuration</artifactId>
        </dependency>
    </dependencies>
    <configuration>
        <rulesets>
            <ruleset>rulesets/hum.ph.xml</ruleset>
        </rulesets>
    </configuration>
</plugin>