You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Diego Almeida (JIRA)" <ji...@codehaus.org> on 2014/04/23 00:02:10 UTC

[jira] (MPMD-186) Class Name with slash is omitted from exclusions on pmd:check

Diego Almeida created MPMD-186:
----------------------------------

             Summary: 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: Linux
            Reporter: Diego Almeida
            Priority: Critical


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