• Version : 7.4

Is there any solution to find ExcludeFromCodeCoverage attribute in source files?
We want to block usage of this attributes.

Thank you in advance.


Any idea?

Thank you.

hi @ckonca

we don’t have a rule that detects the usage of ExcludeFromCodeCoverage attribute in the code

however, SonarQube is extensible and you can write a roslyn analyzer that detects this pattern. By default, all issues raised by roslyn analyzers during build will be imported in SonarQube (see docs)

1 Like

Thank you Andrei_Epure.