File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1402,6 +1402,9 @@ dotnet_diagnostic.S125.severity = suggestion
14021402# Unused assignments should be removed
14031403dotnet_diagnostic.S1854.severity = suggestion
14041404
1405+ # "Exception" should not be caught
1406+ dotnet_diagnostic.S2221.severity = suggestion
1407+
14051408# Method parameters should be declared with base types
14061409dotnet_diagnostic.S3242.severity = suggestion
14071410
@@ -1553,6 +1556,9 @@ dotnet_diagnostic.S2930.severity = error
15531556# 例外情况:具有 EventHandler 委托签名的方法。方法名称匹配 On[A-Z]\w* 模式。
15541557dotnet_diagnostic.S3168.severity = error
15551558
1559+ # Non-derived "private" classes and records should be "sealed"
1560+ dotnet_diagnostic.S3260.severity = error
1561+
15561562# S3400: Methods should not return constants
15571563dotnet_diagnostic.S3400.severity = error
15581564
You can’t perform that action at this time.
0 commit comments