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

Incorect number of ignored files is logged in the end step

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 8.1
    • Fix Version/s: 8.3
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Steps to reproduce:

      • create a .Net test project with 2 files
      • ignore one of them
      • run the analysis
      dotnet sonarscanner begin /k:"repro-excl" /d:sonar.exclusions=IgnoreThese/**/*
      dotnet build --no-incremental
      dotnet sonarscanner end
      

      Expected behavior:
      the logs should specify that 1 file was ignored

      Actual behavior:

      the logs specify that no files were ignored due to inclusion/exclusion patterns

      INFO: Project configuration:
      INFO:   Excluded sources: IgnoreThese/**/*
      INFO: Indexing files of module 'ReproExcl'
      INFO:   Base dir: C:\src\ReproExcl\ReproExcl
      INFO:   Source paths: IgnoreThese/issues.cs, Something.cs
      INFO:   Excluded sources: IgnoreThese/**/*
      INFO: Load project repositories
      INFO: Load project repositories (done) | time=18ms
      INFO: Indexing files of module 'repro-excl'
      INFO:   Base dir: C:\src\ReproExcl\ReproExcl
      INFO:   Excluded sources: IgnoreThese/**/*
      INFO: 1 file indexed
      INFO: 0 files ignored because of inclusion/exclusion patterns
      

      SonarQube Scanner 4.2.0.1873
      SonarQube server 8.1.0

        Attachments

          Activity

            People

            Assignee:
            jacek.poreda Jacek Poreda
            Reporter:
            costin.zaharia Costin Zaharia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: