From bb9a7064101dc4bc4c58c6b83852c5c652280cc3 Mon Sep 17 00:00:00 2001 From: nurhafiz Date: Thu, 2 May 2024 08:58:42 +0800 Subject: [PATCH] Disable StyleCop's SA1010 --- .editorconfig | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index b658213..ca9d4ee 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,6 +5,12 @@ # All files [*] indent_style = space +dotnet_style_operator_placement_when_wrapping = beginning_of_line +tab_width = 4 +indent_size = 4 +end_of_line = crlf +dotnet_style_coalesce_expression = true:suggestion +dotnet_style_null_propagation = true:suggestion # Code files [*.cs] indent_size = 4 @@ -134,7 +140,16 @@ dotnet_diagnostic.SA1623.severity = none # SA1633: File should have header dotnet_diagnostic.SA1633.severity = none dotnet_diagnostic.SA1009.severity=silent -csharp_using_directive_placement=inside_namespace:warning +csharp_using_directive_placement= inside_namespace:warning +csharp_prefer_simple_using_statement = true:suggestion +csharp_style_namespace_declarations = block_scoped:silent +csharp_style_prefer_method_group_conversion = true:silent +csharp_style_prefer_top_level_statements = true:silent +csharp_style_prefer_primary_constructors = true:suggestion +csharp_style_expression_bodied_lambdas = true:silent +csharp_style_expression_bodied_local_functions = false:silent +csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent +dotnet_diagnostic.SA1010.severity = none [*Test.cs] # SA1600: Elements should be documented dotnet_diagnostic.SA1600.severity = none \ No newline at end of file