提交 7edd0b60 编写于 作者: M Manish Vasani

Extend code style enforcement for existing rules in EditorFeatures layer

Builds on top of prior PRs that aim at dogfooding code style enforcement in IDE layers.
上级 2a3d27e9
......@@ -226,6 +226,7 @@ dotnet_diagnostic.RS0037.severity = none
dotnet_diagnostic.RS0005.severity = none
[src/{Analyzers,CodeStyle,Features,Workspaces}/**/*.{cs,vb}]
# IDE0011: Add braces
csharp_prefer_braces = when_multiline:warning
# NOTE: We need the below severity entry for Add Braces due to https://github.com/dotnet/roslyn/issues/44201
......@@ -267,3 +268,7 @@ dotnet_diagnostic.IDE0007.severity = warning
csharp_style_var_for_built_in_types = true:warning
csharp_style_var_when_type_is_apparent = true:warning
csharp_style_var_elsewhere = true:warning
[src/{EditorFeatures}/**/*.{cs,vb}]
# CA1822: Make member static
dotnet_diagnostic.CA1822.severity = warning
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册