Skip to content

Commit 02baea5

Browse files
committed
Update
1 parent 98f4fdb commit 02baea5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,9 @@ dotnet_diagnostic.S125.severity = suggestion
14021402
# Unused assignments should be removed
14031403
dotnet_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
14061409
dotnet_diagnostic.S3242.severity = suggestion
14071410

@@ -1553,6 +1556,9 @@ dotnet_diagnostic.S2930.severity = error
15531556
# 例外情况:具有 EventHandler 委托签名的方法。方法名称匹配 On[A-Z]\w* 模式。
15541557
dotnet_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
15571563
dotnet_diagnostic.S3400.severity = error
15581564

0 commit comments

Comments
 (0)