How to make Sonarqube exclude a .NET (C#) project from coverage measures

前端 未结 6 1181
Happy的楠姐
Happy的楠姐 2021-02-05 14:07

Sonarqube allows for individual files to be excluded from code coverage by adding patterns in the sonar.coverage.exclusions key. This can be done on a project level by

6条回答
  •  醉酒成梦
    2021-02-05 15:03

    Not enough rep to comment, but if you apply both answers here, you can simply add:

    
        
        true
    
    

    in the .csproj file to exclude the entire project instead of individual files, or relying on sonarqube filters.

提交回复
热议问题