line number is not displayed in pmd check report
------------------------------------------------
Key: MPMD-69
URL: http://jira.codehaus.org/browse/MPMD-69
Project: Maven 2.x PMD Plugin
Issue Type: Bug
Components: PMD
Reporter: Xavier Le Vourch
Attachments: BeginLine.txt
The line number is not displayed correctly in the pmd reports, null is
displayed instead. This is a result of updating to pmd 4.1 as the xml report
now has the begin and end lines.
Running "mvn test" will show the behavior:
[INFO] PMD Warning: def.configuration.null Rule:UnusedImports Priority:4 Avoid
unused imports such as 'java.io.File'.
[INFO] PMD Failure: def.configuration.App:null Rule:UnusedPrivateField
Priority:3 Avoid unused private fields such as 'unusedVar2'..
With the attached patch the beginline is there:
[INFO] PMD Warning: def.configuration.22 Rule:UnusedImports Priority:4 Avoid
unused imports such as 'java.io.File'.
[INFO] PMD Failure: def.configuration.App:31 Rule:UnusedPrivateField Priority:3
Avoid unused private fields such as 'unusedVar2'..
--
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