[ http://jira.codehaus.org/browse/MPMD-8?page=comments#action_55257 ]
John Allen commented on MPMD-8:
-------------------------------
Over the weekend i took this code and MPMD-4 patches and went through the
pmd:pmd and pmd:execute Mojos refactoring and aligning them with the other
report and analysis plugins I use (checkstyle, coberutra, pmd)
I would like to suggest that the ruleSets config approach is adopted for both
Mojos but modified to use the Locator lifted from checkstyle (MPMD-4) so that
one is able to specify any number of rulesets, either from the pmd Jar or
custom ones.
My current impl of both the pmd:pmd report Mojo and the pmd:execute Mojo are
configured thus:
<configuration>
<ruleSets>
<ruleSet>D:\mine.xml</ruleSet>
<ruleSet>http:///localhost/basic.xml</ruleSet>
<ruleSet>/rulesets/basic.xml</ruleSet>
<ruleSet>/rulesets/controversial.xml</ruleSet>
</ruleSets>
</configuration>
Additionally I took the external report generation functionality from the
execute mojo and added it to the report mojo. This is useful for integrating
the output into other tools (CC, QALab) as perviously stated although i made it
optional as the real item of interst is the generated site/pmd.html file.
I would like to respectfully ask that these changes be applied to your efforts
before this plugin is released as its trivial to do and provides greater
flexibility as well as functionality.
Note I can supply my code but as the plugin is trivial there doesnt seem much
point.
> PMD should generate results in formats other than html
> ------------------------------------------------------
>
> Key: MPMD-8
> URL: http://jira.codehaus.org/browse/MPMD-8
> Project: Maven 2.x Pmd Plugin
> Type: Improvement
> Reporter: patrick OShea
> Assignee: mike perham
> Fix For: 2.0-beta-1
> Attachments: PmdPlugin.java, how to call from pom.xml
>
>
> Currently the maven2 pmd plugin only creates html output.
> It should be enhanced to allow the output of pmd data in other formats.
> Also It should be possible to run PMD on a projects without adding it as a
> report.
> Linked to MNG-1158
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]