[
http://jira.codehaus.org/browse/MPMD-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MPMD-64.
---------------------------------
Assignee: Benjamin Bentmann
Resolution: Fixed
With PMD 4.2.1, I observe the following output
{noformat}
[INFO] [pmd:check {execution: default}]
[INFO] PMD Failure: org.Main$LocalClass:10 ...
[INFO] PMD Failure: org.Main:15 ...
[INFO] PMD Failure: org.Main$InnerClass:22 ...
{noformat}
i.e. the top-level class and the line number are properly given, so thanks to
Xavier for his work over on PMD!
> verbose output not useful for inner classes
> -------------------------------------------
>
> Key: MPMD-64
> URL: http://jira.codehaus.org/browse/MPMD-64
> Project: Maven 2.x PMD Plugin
> Issue Type: Improvement
> Components: PMD
> Affects Versions: 2.2
> Reporter: Sean Bridges
> Assignee: Benjamin Bentmann
> Priority: Minor
> Fix For: 2.4
>
> Attachments: version_update.txt
>
>
> With verbose output on, a pmd error in an inner class will produce output
> like,
> [INFO] PMD Failure: foo.bar.Anonymous$1:182
> Rule:SignatureDeclareThrowsException Priority:3 A method/constructor
> shouldn't explicitly throw java.lang.Exception.
> Rather than printing the class name, it would be more useful to print out the
> file name.
--
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