Make SonarQube with OpenCover ignore some C #

1

Is it possible to configure SonarQube with OpenCover to skip some classes in my .NET project?

    
asked by anonymous 06.02.2014 / 12:00

1 answer

1

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"
    
06.02.2014 / 12:13