Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-13042

Broken exclusion counts in Scanner logs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.7
    • Fix Version/s: 8.3
    • Component/s: Scanner
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Scenario

      I have a project with 35 source files
      I can choose to exclude four of those using sonar.exclusions, set at the project level via the UI.

      Results

      The way we're showing the number of source file exclusions at the scanner level differs between 6.7 and 7.9.
      The 7.9 behaviour is also present in 8.1.

      SonarQube 6.7, no exclusions:

      INFO: Index files
      INFO: 35 files indexed

      SonarQube 6.7 with exclusions:

      INFO: Index files
      INFO: Excluded sources:
      INFO: */.pli
      INFO: 31 files indexed
      INFO: 4 files ignored because of inclusion/exclusion patterns

      SonarQube 7.9/8.1, no exclusions:

      INFO: 35 files indexed
      INFO: 0 files ignored because of scm ignore settings

      SonarQube 7.9/8.1, with exclusions:

      INFO: 31 files indexed
      INFO: 0 files ignored because of inclusion/exclusion patterns
      INFO: 0 files ignored because of scm ignore settings

      4 files were ignored but we're just not telling users about it.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jacek.poreda Jacek Poreda
              Reporter:
              siegfried.ehret Siegfried Ehret (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: