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

CheckStyle-Plugin doubles violations in maven multi module projects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: checkstyle-plugin
    • Labels:
    • Environment:
      Jenkins ver. 2.19.3, checkstyle-plugin: 3.47
    • Similar Issues:

      Description

      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

        Attachments

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

          Activity

          bish Bukama Marenellin created issue -
          bish Bukama Marenellin made changes -
          Field Original Value New Value
          Attachment checkstyle-logs.txt [ 39784 ]
          Description *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}
          *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}
          drulli Ulli Hafner made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

            People

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

              Dates

              Created:
              Updated:
              Resolved: