How to Use a File to Exclude Files From Code Coverage

Hey there.

  1. You can set coverage exclusions in the SonarCloud UI.
  2. You can also add sonar.coverage.exclusions as an analysis parameter added to your scanner command
  3. or set per-project analysis parameters in a .csproj file.
1 Like