Skip to content

Commit 63886f6

Browse files
Mohammad DehghanMohammad Dehghan
authored andcommitted
Fix CA suppressions
1 parent ca9d2c8 commit 63886f6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

SG.CodeCoverage.Recorder/GlobalSuppressions.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// a specific target and scoped to a namespace, type, member, etc.
55

66

7-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "The exceptions should be sent back to the client that invoked the command.", Scope = "member", Target = "~M:SG.CodeCoverage.Recorder.Server.ProcessCommand(System.String)~System.String")]
8-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "This method is async and is not awaited anywhere, so it should not raise any exceptions.", Scope = "member", Target = "~M:SG.CodeCoverage.Recorder.Server.StartAsync(System.Int32)~System.Threading.Tasks.Task")]
9-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "This method is async and is not awaited anywhere, so it should not raise any exceptions.", Scope = "member", Target = "~M:SG.CodeCoverage.Recorder.Server.AcceptAsync(System.Net.Sockets.TcpClient)~System.Threading.Tasks.Task")]
7+
using System.Diagnostics.CodeAnalysis;
8+
9+
[assembly: SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "The exceptions should be sent back to the client that invoked the command.", Scope = "member", Target = "~M:SG.CodeCoverage.Recorder.RecordingController.Server.ProcessCommand(System.String)~System.String")]
10+
[assembly: SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "This method is async and is not awaited anywhere, so it should not raise any exceptions.", Scope = "member", Target = "~M:SG.CodeCoverage.Recorder.RecordingController.Server.StartAsync(System.Int32)~System.Threading.Tasks.Task")]
11+
[assembly: SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "This method is async and is not awaited anywhere, so it should not raise any exceptions.", Scope = "member", Target = "~M:SG.CodeCoverage.Recorder.RecordingController.Server.AcceptAsync(System.Net.Sockets.TcpClient)~System.Threading.Tasks.Task")]

0 commit comments

Comments
 (0)