Skip to content

Commit

Permalink
refactor: configure ExcludeFromCodeCoverage for Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Feb 6, 2024
1 parent 99460cd commit 9e7ee07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dotnet-exec/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@
return await command.InvokeAsync(normalizedArgs);
}
return await command.InvokeAsync(args);

[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
internal partial class Program {}

Check warning on line 29 in src/dotnet-exec/Program.cs

View workflow job for this annotation

GitHub Actions / windows-build

Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)

0 comments on commit 9e7ee07

Please sign in to comment.