You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2015/12/01 19:34:11 UTC

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

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

Michael Osipov edited comment on MPMD-186 at 12/1/15 6:33 PM:
--------------------------------------------------------------

[~justin.shepard], just checked your PR and I am willing to merge. I'd like to clarify something in advance. The issue is simply that the the code is not OS-agnostic but blindly assumes that Windows is used? Because when can a class name contain a slash? I also assume that this issue persists with version 3.5?


was (Author: michael-o):
[~justin.shepard], just checked your PR and I am willing to merge. I'd like to clarify something in advance. The issue is simply that the the code is not OS-agnostic but blindly assumes that Windows is used? Because when can a class name contain a slash?

> Class Name with slash is omitted from exclusions on pmd:check
> -------------------------------------------------------------
>
>                 Key: MPMD-186
>                 URL: https://issues.apache.org/jira/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
>            Assignee: Michael Osipov
>            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.3.4#6332)