maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Shepard (JIRA)" <j...@codehaus.org>
Subject [jira] (MPMD-186) Class Name with slash is omitted from exclusions on pmd:check
Date Mon, 26 Jan 2015 19:30:18 GMT

    [ https://jira.codehaus.org/browse/MPMD-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=361836#comment-361836
] 

Justin Shepard commented on MPMD-186:
-------------------------------------

This issue has been affecting my MacBook as well (along with coworkers who are using MacBooks),
so I took some time and implemented a fix for the issue, in the hopes that this might speed
along getting the issue fixed. The patch is based on trunk.

> Class Name with slash is omitted from exclusions on pmd:check
> -------------------------------------------------------------
>
>                 Key: MPMD-186
>                 URL: https://jira.codehaus.org/browse/MPMD-186
>             Project: Maven PMD Plugin
>          Issue Type: Bug
>          Components: PMD
>    Affects Versions: 3.1
>         Environment: Ubuntu 13.04  Jdk 1.7  Maven 3.1.1
>            Reporter: Diego Almeida
>            Priority: Critical
>         Attachments: maven-pmd-plugin.patch
>
>
> The method getFileName on class Violation returns the class name with slash or back slash.
On the method extractClassName in the Class PmdViolationCheckMojo the backslashes are replaced
with dots in order to compose the package name, but some
>  classes do not meet this condition and stay with the original class name and are not
found on the map excludeFromFailureClasses that contains the classes and the rules with exceptions.
> This generates an error even if the class and the rule are included on the exception
file.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message