Skip to content

Commit 7f43baa

Browse files
committed
Suppress rules we can't follow.
1 parent 70cfee2 commit 7f43baa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build/Analyzers.ruleset

+8
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
<Rules AnalyzerId="Microsoft.Usage" RuleNamespace="Microsoft.Usage">
55
<!-- Implement standard exception constructors - not all of the exception constructors (e.g., parameterless) are desired in our system. -->
66
<Rule Id="CA1032" Action="None" />
7+
<!-- Use ArgumentNullException.ThrowIfNull - this isn't available until we stop targeting netstandard. -->
8+
<Rule Id="CA1510" Action="None" />
9+
<!-- Use ArgumentOutOfRangeException.ThrowIfNegative - this isn't available until we stop targeting anything below net8.0. -->
10+
<Rule Id="CA1512" Action="None" />
11+
<!-- Use ObjectDisposedException.ThrowIf - this isn't available until we stop targeting anything below net8.0. -->
12+
<Rule Id="CA1513" Action="None" />
713
<!-- Change names to avoid reserved word overlaps (e.g., Delegate, GetType, etc.) - too many of these in the public API, we'd break if we fixed it. -->
814
<Rule Id="CA1716" Action="None" />
15+
<!-- Cache a CompositeFormat object for use in String.Format - this isn't available until we stop targeting netstandard, and we only String.Format when throwing exceptions so the work/complexity isn't justified to increase perf just for those situations. -->
16+
<Rule Id="CA1863" Action="None" />
917
<!-- Implement serialization constructors - false positive when building .NET Core -->
1018
<Rule Id="CA2229" Action="None" />
1119
<!-- Mark ISerializable types with SerializableAttribute - false positive when building .NET Core -->

0 commit comments

Comments
 (0)