@@ -91,9 +91,40 @@ dotnet_diagnostic.CA1802.severity = warning
9191# CA1805: Do not initialize unnecessarily
9292dotnet_diagnostic.CA1805.severity = warning
9393
94+ # CA1823: Remove empty Finalizers
95+ dotnet_diagnostic.CA1821.severity = warning
96+
9497# CA1823: Avoid unused private fields
9598dotnet_diagnostic.CA1823.severity = warning
9699
100+ # CA1823: Avoid zero-length array allocations
101+ dotnet_diagnostic.CA1825.severity = warning
102+
103+ # CA1826: Do not use Enumerable methods on indexable collections. Instead use the collection directly
104+ dotnet_diagnostic.CA1826.severity = warning
105+
106+ # CA1827: Do not use Count() or LongCount() when Any() can be used
107+ dotnet_diagnostic.CA1827.severity = warning
108+
109+ # CA1828: Do not use CountAsync() or LongCountAsync() when AnyAsync() can be used
110+ dotnet_diagnostic.CA1828.severity = warning
111+
112+ # CA1829: Use Length/Count property instead of Count() when available
113+ dotnet_diagnostic.CA1829.severity = warning
114+
115+ # CA1830: Prefer strongly-typed Append and Insert method overloads on StringBuilder
116+ dotnet_diagnostic.CA1830.severity = warning
117+
118+ # CA1831: Use AsSpan or AsMemory instead of Range-based indexers when appropriate
119+ # CA1832: Use AsSpan or AsMemory instead of Range-based indexers when appropriate
120+ # CA1833: Use AsSpan or AsMemory instead of Range-based indexers when appropriate
121+ dotnet_diagnostic.CA1831.severity = warning
122+ dotnet_diagnostic.CA1832.severity = warning
123+ dotnet_diagnostic.CA1833.severity = warning
124+
125+ # CA1834: Consider using 'StringBuilder.Append(char)' when applicable
126+ dotnet_diagnostic.CA1834.severity = warning
127+
97128# CA2012: Use ValueTask correctly
98129dotnet_diagnostic.CA2012.severity = warning
99130
@@ -110,5 +141,15 @@ dotnet_diagnostic.CA1507.severity = suggestion
110141dotnet_diagnostic.CA1802.severity = suggestion
111142# CA1805: Do not initialize unnecessarily
112143dotnet_diagnostic.CA1805.severity = suggestion
144+ # CA1823: Avoid zero-length array allocations
145+ dotnet_diagnostic.CA1825.severity = suggestion
146+ # CA1826: Do not use Enumerable methods on indexable collections. Instead use the collection directly
147+ dotnet_diagnostic.CA1826.severity = suggestion
148+ # CA1827: Do not use Count() or LongCount() when Any() can be used
149+ dotnet_diagnostic.CA1827.severity = suggestion
150+ # CA1829: Use Length/Count property instead of Count() when available
151+ dotnet_diagnostic.CA1829.severity = suggestion
152+ # CA1834: Consider using 'StringBuilder.Append(char)' when applicable
153+ dotnet_diagnostic.CA1834.severity = suggestion
113154# CA2012: Use ValueTask correctly
114155dotnet_diagnostic.CA2012.severity = suggestion
0 commit comments