From 6a9f06d454b8d8bd9d7519dd2a440cd12cf62dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Hompus?= Date: Mon, 16 Sep 2024 22:43:36 +0200 Subject: [PATCH] Apply some code style --- .editorconfig | 10 +++++++++- src/DendroDocs.Tool/DendroDocs.Tool.csproj | 16 ++++++++-------- .../DocumentationTagContentParsingTests.cs | 2 -- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.editorconfig b/.editorconfig index 186de61..e02e24e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,6 @@ # To learn more about .editorconfig see https://aka.ms/editorconfigdocs +root = true + ############################### # Core EditorConfig Options # ############################### @@ -8,11 +10,14 @@ indent_style = space [*.{csproj,xml,runsettings}] +indent_style = space indent_size = 2 +tab_size = 2 # Code files [*.{cs,csx,vb,vbx}] indent_size = 4 +tab_size = 4 insert_final_newline = true charset = utf-8 @@ -72,7 +77,7 @@ csharp_style_var_for_built_in_types = true csharp_style_var_when_type_is_apparent = true csharp_style_var_elsewhere = true # Expression-bodied members -csharp_style_expression_bodied_methods = false:suggestion +csharp_style_expression_bodied_methods = false:silent csharp_style_expression_bodied_constructors = false:suggestion csharp_style_expression_bodied_operators = false:suggestion csharp_style_expression_bodied_properties = true:suggestion @@ -122,3 +127,6 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false # Wrapping preferences csharp_preserve_single_line_statements = true csharp_preserve_single_line_blocks = true + +# IDE0022: Use block body for method +dotnet_diagnostic.IDE0022.severity = silent diff --git a/src/DendroDocs.Tool/DendroDocs.Tool.csproj b/src/DendroDocs.Tool/DendroDocs.Tool.csproj index 95ea955..790b8c7 100644 --- a/src/DendroDocs.Tool/DendroDocs.Tool.csproj +++ b/src/DendroDocs.Tool/DendroDocs.Tool.csproj @@ -32,14 +32,14 @@ - - - - - - - - + + + + + + + + diff --git a/tests/DendroDocs.Tool.Tests/DocumentationTagContentParsingTests.cs b/tests/DendroDocs.Tool.Tests/DocumentationTagContentParsingTests.cs index 76777a6..d214d3b 100644 --- a/tests/DendroDocs.Tool.Tests/DocumentationTagContentParsingTests.cs +++ b/tests/DendroDocs.Tool.Tests/DocumentationTagContentParsingTests.cs @@ -733,8 +733,6 @@ class Test """.UseUnixNewLine()); } - - [TestMethod] public void TagWithNumberedList_Should_HaveNumberedListItemsAsLinesInComment() {