When running the Scanner through the command prompt, the report of number of files ignored always shows 0. I would expect this number to go up as files are excluded.
Using: SonarQube 7.9.1
SonarScanner for MSBuild 4.6.2
Steps to Reproduce:
1)Run scan on project with no Exclusions, review output:
INFO: 191 Files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
2)Add Exclusions, re-run scan
INFO: 149 files indexed
INFO: 0 files ignored because of inclusion/exclusion patterns
It does exclude the files correctly, it just does not report on the number of files excluded correctly.
Could you please share the exclusion expression you are using?
Sure, no problem. Since I just wanted to confirm the report of @AndrewC75 I just excluded an entire source directory. So the expression was “${source directory}/*”.