[ 
http://jira.codehaus.org/browse/MPMD-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=196397#action_196397
 ] 

Nick Stolwijk commented on MPMD-109:
------------------------------------

I have found the problem.

The pmd plugin just parsed the xml file and prints the packagename + class 
found in the xml file. [1] The pmd file does not contain class for rules which 
are above class level. [2] It is not something the pmd plugin can solve. Your 
rule sees the whole class as "wrong", maybe you can change your rule to see a 
specific line as wrong.

[1] 
http://svn.apache.org/viewvc/maven/plugins/tags/maven-pmd-plugin-2.4/src/main/java/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.java?view=markup
 line 89
[2] 
http://pmd.svn.sourceforge.net/viewvc/pmd/tags/pmd/pmd_release_4_2_2/src/net/sourceforge/pmd/RuleViolation.java?revision=6135&view=markup
 line 77

> Class name not printed in pmd:check output
> ------------------------------------------
>
>                 Key: MPMD-109
>                 URL: http://jira.codehaus.org/browse/MPMD-109
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Improvement
>          Components: PMD
>    Affects Versions: 2.4
>            Reporter: Johan Andrén
>
> When we get pmd:check failures only package name and line is printed. It 
> would be very nice to get class name as well.
> Example output:
> [pmd:check]
> PMD Failure: se.databyran.prosang.client.core.util.form.dialogs.13 
> Rule:AutoGenerateMnemonicsRequired Priority:3 All forms and panels must have 
> the 'auto generate mnemonics' property set.
> PMD Failure: se.databyran.prosang.client.core.util.gui.62 
> Rule:AutoGenerateMnemonicsRequired Priority:3 All forms and panels must have 
> the 'auto generate mnemonics' property set.
> PMD Failure: se.databyran.prosang.client.core.util.search.44 
> Rule:AutoGenerateMnemonicsRequired Priority:3 All forms and panels must have 
> the 'auto generate mnemonics' property set.
> PMD Failure: se.databyran.prosang.client.core.util.search.FinderDialog:70 
> Rule:AutoGenerateMnemonicsRequired Priority:3 All forms and panels must have 
> the 'auto generate mnemonics' property set.

-- 
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


Reply via email to