Skip to content

Commit f176d31

Browse files
committed
Enable CA1865-CA1867: Use 'string.Method(char)' instead of 'string.Method(string)' for string with single char
https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1865-ca1867
1 parent 59b025b commit f176d31

2 files changed

Lines changed: 232 additions & 219 deletions

File tree

.globalconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
is_global = true
2+
3+
# CA1865: Use char overload
4+
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1865
5+
dotnet_diagnostic.CA1865.severity = warning
6+
7+
# CA1866: Use char overload
8+
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1866
9+
dotnet_diagnostic.CA1866.severity = warning
10+
11+
# CA1867: Use char overload
12+
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1867
13+
dotnet_diagnostic.CA1867.severity = warning

0 commit comments

Comments
 (0)