Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-186

Class names with slash are omitted from exclusions on pmd:check

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.1, 3.5
    • 3.6
    • PMD
    • None
    • Ubuntu 13.04 Jdk 1.7 Maven 3.1.1

    Description

      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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            michael-o Michael Osipov
            diegosenpai Diego Almeida
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment