-
Notifications
You must be signed in to change notification settings - Fork 19
Home
Contributions made to PMD will not be automatically used by the Code Climate engine. You have to replace the current build of PMD in the engine with new one. Those are the steps you need to do:
-
Adjust the pom.xml of PMD to get a lean build of PMD only with the required Jars, we recommend you to use our pom.xml.
-
Build PMD. Execute
mvn clean packagein the root directory of PMD. -
Unzip the generated
pmd-bin-5.5.0-SNAPSHOT.zipin the/pmd/pmd-dist/targetdirectory. -
Fork the Apex Metrics engine.
-
Replace the content of
/codeclimate-apexmetrics/lib/pmdwith the content of your unzippedpmd-bin-5.5.0-SNAPSHOTdirectory. -
Test and execute your custome engine locally or pull request you changes.
Beside extending the underlying PMD framework people could also add totally new mechanisms to evaluate code. Code would then not only run through PMD but also through other internal components. Just imagine using the Tooling Api and then reporting back on usused code across class boundaries as implemented by Salesforce.com MVP Andrew Fawcett.
