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

    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

        1. maven-pmd-plugin.patch
          3 kB
          Justin Shepard

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: