Is it possible to configure SonarQube with OpenCover to skip some classes in my .NET project?
Is it possible to configure SonarQube with OpenCover to skip some classes in my .NET project?
Adds the -filter
flag to the OpenCover execution command to exclude types belonging to a MyNamespace
namespace:
-filter:"+[*]* -[NomeDaAssembly]MyNamespace.*"
I'm not sure, but I think you can also exclude specific files in a similar way:
-filter:"+[*]* -[NomeDaAssembly]MyNamespace.MySpecificClass.cs"