Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46985

CheckStyle-Plugin doubles violations in maven multi module projects

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • checkstyle-plugin
    • Jenkins ver. 2.19.3, checkstyle-plugin: 3.47

      Scenario: Jenkins maven job ("maven project") for multi module project

      Error: In a maven multi-module projekt the checkstyle plugin summarizes all violations of the modules and adds this value to the parent module, resulting in double amount of violations and duplicate violation messages.

      Expectation: Expectation is that no report is made for the parent as it has no soures and therefor no violations, like the EAR-module for which are no violations are shown in the overview.

      Other:

      This does not happen in findbugs or pmd plugin (only screenshot of findbugs is added)

      Structure if the project is default multi module:

      parent (only pom)
      |- EJB-module
      |- WS-module
      |- WAR-module

        1. checkstyle-logs.txt
          5 kB
        2. findbugs.png
          findbugs.png
          20 kB
        3. doppeltemeldung.png
          doppeltemeldung.png
          26 kB
        4. overview.png
          overview.png
          6 kB

          [JENKINS-46985] CheckStyle-Plugin doubles violations in maven multi module projects

          Bukama Marenellin created issue -
          Bukama Marenellin made changes -
          Attachment New: checkstyle-logs.txt [ 39784 ]
          Description Original: *Scenario*: Jenkins maven job for multi module project

          *Error*: In a maven multi-module projekt the checkstyle plugin summarizes all violations of the modules and adds this value to the parent module, resulting in double amount of violations and duplicate violation messages.

          *Expectation*: Expectation is that no report is made for the parent as it has no soures and therefor no violations, like the EAR-module for which are no violations are shown in the overview.

          *Other*:

          This does not happen in findbugs or pmd plugin (only screenshot of findbugs is added)

          Structure if the project is default multi module:
          {code:java}
          parent (only pom)
          |- EJB-module
          |- WS-module
          |- WAR-module{code}
          New: *Scenario*: Jenkins maven job ("maven project") for multi module project

          *Error*: In a maven multi-module projekt the checkstyle plugin summarizes all violations of the modules and adds this value to the parent module, resulting in double amount of violations and duplicate violation messages.

          *Expectation*: Expectation is that no report is made for the parent as it has no soures and therefor no violations, like the EAR-module for which are no violations are shown in the overview.

          *Other*:

          This does not happen in findbugs or pmd plugin (only screenshot of findbugs is added)

          Structure if the project is default multi module:
          {code:java}
          parent (only pom)
          |- EJB-module
          |- WS-module
          |- WAR-module{code}
          Ulli Hafner made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            drulli Ulli Hafner
            bish Bukama Marenellin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: