File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -751,6 +751,12 @@ dotnet_diagnostic.CS4014.severity = error
751751# 在适用处使用属性
752752dotnet_diagnostic.CA1024.severity = suggestion
753753
754+ # CA1031:不要捕捉一般异常类型 使用 S2221 警告
755+ dotnet_diagnostic.CA1031.severity = none
756+
757+ # CA1062:验证公共方法的参数是否 null 改为 none 启用 nullable
758+ dotnet_diagnostic.CA1062.severity = none
759+
754760# CA1715: Identifiers should have correct prefix
755761dotnet_diagnostic.CA1715.severity = none
756762
@@ -1396,9 +1402,6 @@ dotnet_diagnostic.S125.severity = suggestion
13961402# Unused assignments should be removed
13971403dotnet_diagnostic.S1854.severity = suggestion
13981404
1399- # "Exception" should not be caught
1400- dotnet_diagnostic.S2221.severity = suggestion
1401-
14021405# Method parameters should be declared with base types
14031406dotnet_diagnostic.S3242.severity = suggestion
14041407
@@ -1550,9 +1553,6 @@ dotnet_diagnostic.S2930.severity = error
15501553# 例外情况:具有 EventHandler 委托签名的方法。方法名称匹配 On[A-Z]\w* 模式。
15511554dotnet_diagnostic.S3168.severity = error
15521555
1553- # Non-derived "private" classes and records should be "sealed"
1554- dotnet_diagnostic.S3260.severity = error
1555-
15561556# S3400: Methods should not return constants
15571557dotnet_diagnostic.S3400.severity = error
15581558
You can’t perform that action at this time.
0 commit comments