0
votes

I'm using Sonarqube 5.1.2 with MSBuild Sonarqube runner 1.0. I have set up build in TFS that triggers the sonarqube runner and it works fine. Sourcecode is C#, Javascript and CSS.

I want to ignore auto generated files, so I have tried to enter this regex .*<auto-generated>.* in the Ignore Issues on Files section in Sonarqube, but this causes the sonarqube runner to hang on the analyze phase forever. If I remove the regex, the build runs fine. Anyone else have experienced this?

1
I think I actually found the answer to my question here: stackoverflow.com/questions/31962814/… - Wangen

1 Answers

0
votes

Paths are relative to the project base directory. only below Wildcards can be used while specifying exclusion list

*   Match zero or more characters
**  Match zero or more directories
?   Match a single character

let's say if your autogenerated files and other files are under src folders. You can ignore using this line **/src/*autogeneated* You can follow this link for more details