formatting + cleanup

This commit is contained in:
irongut
2021-09-20 01:00:33 +01:00
parent 0bcadffdb9
commit 20025e7e93
2 changed files with 76 additions and 70 deletions
@@ -0,0 +1,8 @@
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Performance", "RCS1197:Optimize StringBuilder.Append/AppendLine call.", Scope = "type", Target = "~T:CodeCoverageSummary.Program")]
+1 -3
View File
@@ -9,8 +9,6 @@ namespace CodeCoverageSummary
{ {
internal static class Program internal static class Program
{ {
// test file: /Dev/Csharp/CodeCoverageSummary/coverage.cobertura.xml
private static int Main(string[] args) private static int Main(string[] args)
{ {
return Parser.Default.ParseArguments<CommandLineOptions>(args) return Parser.Default.ParseArguments<CommandLineOptions>(args)
@@ -85,7 +83,7 @@ namespace CodeCoverageSummary
return -3; // unhandled error return -3; // unhandled error
} }
}, },
errs => -1); // invalid arguments _ => -1); // invalid arguments
} }
private static CodeSummary ParseTestResults(string filename) private static CodeSummary ParseTestResults(string filename)