LTS6.7.4: ignore issues on files not work


(mgnafil li) #1

Hello everyone,

I am using SonarQube LTS 6.7.4 now. I tried the ignore issues on files function but can still see the issues in the file which should be ignored. Did anyone see same issue? Or any samples?

Here is my steps:

  1. file program.cs/startup.cs have “configuration” word in its content
  2. made configuration for the project and set the value “configuration” as value of Regular Expression[Ignore Issues on Files].
  3. can see the logs during analyse:
    17:03:06.028 INFO: 'Program.cs' generating issue exclusions
17:03:06.030 DEBUG: - Exclusion pattern 'Configuration': every issue in this file will be ignored.
17:03:06.031 DEBUG: 'Program.cs' generated metadata  with charset 'UTF-8'
17:03:06.031 DEBUG: 'Program.cs' indexed with language 'cs'
17:03:06.034 DEBUG: Skipping auto generated file: obj/Debug/netcoreapp2.0/ForSonarQubeCI.AssemblyInfo.cs
17:03:06.034 DEBUG: 'obj/Debug/netcoreapp2.0/ForSonarQubeCI.AssemblyInfo.cs' excluded by org.sonarsource.dotnet.shared.plugins.GeneratedFileFilter
17:03:06.035 INFO: 'Startup.cs' generating issue exclusions
17:03:06.035 DEBUG: - Exclusion pattern 'Configuration': every issue in this file will be ignored.
17:03:06.036 DEBUG: - Exclusion pattern 'Configuration': every issue in this file will be ignored.
17:03:06.036 DEBUG: - Exclusion pattern 'Configuration': every issue in this file will be ignored.
17:03:06.036 DEBUG: - Exclusion pattern 'Configuration': every issue in this file will be ignored.
  1. check the report and found the issue of the two files are still there

Thanks a lot
mgnafil


(G Ann Campbell) #2

Hi mgnafil,

Please share your configuration of this exclusion.

Ann