Issue Type: Improvement Improvement
Assignee: Simon Brandhof
Attachments: PmdExecutor.java
Created: 17/Jun/13 9:15 AM
Description:

This issue is for Sonar PMD plugin (I use sonar 3.2.1)
I couldn't assign this issue to Sonar project on your JIRA ??

We have developped a custom PMD rule written in Java,
and integrated that custom rule in Sonar

However, i noticed that Sonar pmd plugin (version 3.2.1) wraps PMD 4.3 engine,
but Sonar PMD plugin do not call PMD Ruleset start() and end() methods
In PMD normal lifecycle, start() is invoked once before PMD analysis is performed on each Pmd rule, then end() method is called at the end of PMD analysis

In Pmd plugin, PmdExecutor class, executeRules method, i have patched this method to fit my needs: (See the Patch attached to this issue)

I added the calls to start() and end() around the for loop

rulesets.start(ruleContext);
for (InputFile file : files)

{ pmdFactory.process(file, encoding, rulesets, ruleContext); }

rulesets.end(ruleContext);

Environment: Sonar 3.2.1, MySQL server and windows 7 - 32 bits
Project: Mojo's Sonar Maven Plugin
Priority: Major Major
Reporter: levi marc
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to