Search code examples
sonarqubetfs-2015sonarqube-scan

SonarQube exclude files


Our Build fails due to such error:

The folder 'F:\TFS_Agents\Default_work\58\s\Sources\DotNet\foo\OnlineHelp\Syntax' does not exist...

I checked the original folder OnlineHelp, and there is no folder named Syntax inside. Instead there is an auto-generated file named

Syntax,_functions,_currencies_and_units.html

So i suggested to exclude the whole OnlineHelp folder like this: exclude filter

But still get the same error. Did i do any mistakes with the filter?


Solution

  • The SonarQube Scanner for MSBuild has a known limitation with files containing commas, see SONARMSBRU-199 .

    There's anyhow little value in analysing generated code (quality feedback not actionable by end-user), you're better off excluding projects made of generated code.