Skip to content

Commit

Permalink
Apply some code style
Browse files Browse the repository at this point in the history
  • Loading branch information
eNeRGy164 committed Oct 7, 2024
1 parent 8d345c5 commit 6a9f06d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
10 changes: 9 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
root = true

###############################
# Core EditorConfig Options #
###############################
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
16 changes: 8 additions & 8 deletions src/DendroDocs.Tool/DendroDocs.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
<EmbeddedResource Include="schema.json" />
</ItemGroup>

<ItemGroup>
<Using Include="CommandLine" />
<Using Include="DendroDocs.Extensions" />
<Using Include="DendroDocs.Json" />
<Using Include="Microsoft.CodeAnalysis" />
<Using Include="Microsoft.CodeAnalysis.CSharp" />
<Using Include="Microsoft.CodeAnalysis.CSharp.Syntax" />
</ItemGroup>
<ItemGroup>
<Using Include="CommandLine" />
<Using Include="DendroDocs.Extensions" />
<Using Include="DendroDocs.Json" />
<Using Include="Microsoft.CodeAnalysis" />
<Using Include="Microsoft.CodeAnalysis.CSharp" />
<Using Include="Microsoft.CodeAnalysis.CSharp.Syntax" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Buildalyzer.Workspaces" Version="7.0.2" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,6 @@ class Test
""".UseUnixNewLine());
}



[TestMethod]
public void TagWithNumberedList_Should_HaveNumberedListItemsAsLinesInComment()
{
Expand Down

0 comments on commit 6a9f06d

Please sign in to comment.