Skip to content

Commit 9633738

Browse files
committed
Disable CA2201 in Test.ruleset: tests use generic exceptions for simulation.
1 parent ff26663 commit 9633738

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

build/Test.ruleset

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
<!-- Call ConfigureAwait - shouldn't in test libraries; XUnit has opposing analyzer. -->
4040
<Rule Id="CA2007" Action="None" />
4141
<!-- Implement serialization constructors - false positive in .NET Core. -->
42+
<!-- Do not raise reserved exception types - tests use generic exceptions for simulation. -->
43+
<Rule Id="CA2201" Action="None" />
4244
<Rule Id="CA2229" Action="None" />
4345
<!-- Use Uri instead of string parameters - strings are easier for testing. -->
4446
<Rule Id="CA2234" Action="None" />

0 commit comments

Comments
 (0)