@@ -28,6 +28,15 @@ dotnet_diagnostic.CA1310.severity = error
2828# CA1311: Specify a culture or use an invariant version
2929dotnet_diagnostic.CA1311.severity = error
3030
31+ # CA1510: Use 'ArgumentNullException. ThrowIfNull' instead of explicitly throwing a new exception instance
32+ dotnet_diagnostic.CA1510.severity = suggestion
33+
34+ # CA1512: Use 'ArgumentOutOfRangeException. ThrowIfNegativeOrZero' instead of explicitly throwing a new exception instance
35+ dotnet_diagnostic.CA1512.severity = suggestion
36+
37+ # CA1513: Use 'ObjectDisposedException. ThrowIf' instead of explicitly throwing a new exception instance
38+ dotnet_diagnostic.CA1513.severity = suggestion
39+
3140# CA1820: Test for empty strings using string length
3241dotnet_diagnostic.CA1820.severity = error
3342
@@ -79,6 +88,9 @@ dotnet_diagnostic.CA1044.severity = suggestion
7988# CA1805: Member X is explicitly initialized to its default value
8089dotnet_diagnostic.CA1805.severity = suggestion
8190
91+ # CA1845: Use span-based 'string. Concat' and 'AsSpan' instead of 'Substring'
92+ dotnet_diagnostic.CA1845.severity = suggestion
93+
8294# CA1708: Names of 'Members' should differ by more than case
8395dotnet_diagnostic.CA1708.severity = suggestion
8496
@@ -88,6 +100,9 @@ dotnet_diagnostic.CA1001.severity = suggestion
88100# CA1823: Unused field X
89101dotnet_diagnostic.CA1823.severity = suggestion
90102
103+ # CA1846: Prefer 'AsSpan' over 'Substring' when span-based overloads are available
104+ dotnet_diagnostic.CA1846.severity = suggestion
105+
91106# CA1024: Use properties where appropriate
92107dotnet_diagnostic.CA1024.severity = suggestion
93108
@@ -97,6 +112,9 @@ dotnet_diagnostic.CA1036.severity = suggestion
97112# CA1814: initialize uses a multidimensional array of int[*,*]. Replace it with a jagged array if possible.
98113dotnet_diagnostic.CA1814.severity = suggestion
99114
115+ # CA1850: Prefer static 'System. Security. Cryptography. SHA1.HashData' method over 'ComputeHash'
116+ dotnet_diagnostic.CA1850.severity = suggestion
117+
100118# CA2000: Use recommended dispose pattern to ensure that object created
101119dotnet_diagnostic.CA2000.severity = suggestion
102120
@@ -139,6 +157,9 @@ dotnet_diagnostic.CA1508.severity = suggestion
139157# CA1040: Avoid empty interfaces
140158dotnet_diagnostic.CA1040.severity = suggestion
141159
160+ # CA2249: Use 'string. Contains' instead of 'string. IndexOf' to improve readability
161+ dotnet_diagnostic.CA2249.severity = suggestion
162+
142163# CA5351: Create uses a broken cryptographic algorithm MD5
143164dotnet_diagnostic.CA5351.severity = suggestion
144165
@@ -175,5 +196,8 @@ dotnet_diagnostic.IDE0004.severity = warning
175196# Use readonly Modifier
176197dotnet_diagnostic.IDE0044.severity = warning
177198
199+ # SYSLIB0014: Method 'System.Net.WebRequest.Create(Uri)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.'
200+ dotnet_diagnostic.SYSLIB0014.severity = suggestion
201+
178202# force file scoped namespaces
179203csharp_style_namespace_declarations = file_scoped:error
0 commit comments