Skip to content

Commit 6a9f06d

Browse files
committed
Apply some code style
1 parent 8d345c5 commit 6a9f06d

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

Diff for: .editorconfig

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
2+
root = true
3+
24
###############################
35
# Core EditorConfig Options #
46
###############################
@@ -8,11 +10,14 @@
810
indent_style = space
911

1012
[*.{csproj,xml,runsettings}]
13+
indent_style = space
1114
indent_size = 2
15+
tab_size = 2
1216

1317
# Code files
1418
[*.{cs,csx,vb,vbx}]
1519
indent_size = 4
20+
tab_size = 4
1621
insert_final_newline = true
1722
charset = utf-8
1823

@@ -72,7 +77,7 @@ csharp_style_var_for_built_in_types = true
7277
csharp_style_var_when_type_is_apparent = true
7378
csharp_style_var_elsewhere = true
7479
# Expression-bodied members
75-
csharp_style_expression_bodied_methods = false:suggestion
80+
csharp_style_expression_bodied_methods = false:silent
7681
csharp_style_expression_bodied_constructors = false:suggestion
7782
csharp_style_expression_bodied_operators = false:suggestion
7883
csharp_style_expression_bodied_properties = true:suggestion
@@ -122,3 +127,6 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false
122127
# Wrapping preferences
123128
csharp_preserve_single_line_statements = true
124129
csharp_preserve_single_line_blocks = true
130+
131+
# IDE0022: Use block body for method
132+
dotnet_diagnostic.IDE0022.severity = silent

Diff for: src/DendroDocs.Tool/DendroDocs.Tool.csproj

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
<EmbeddedResource Include="schema.json" />
3333
</ItemGroup>
3434

35-
<ItemGroup>
36-
<Using Include="CommandLine" />
37-
<Using Include="DendroDocs.Extensions" />
38-
<Using Include="DendroDocs.Json" />
39-
<Using Include="Microsoft.CodeAnalysis" />
40-
<Using Include="Microsoft.CodeAnalysis.CSharp" />
41-
<Using Include="Microsoft.CodeAnalysis.CSharp.Syntax" />
42-
</ItemGroup>
35+
<ItemGroup>
36+
<Using Include="CommandLine" />
37+
<Using Include="DendroDocs.Extensions" />
38+
<Using Include="DendroDocs.Json" />
39+
<Using Include="Microsoft.CodeAnalysis" />
40+
<Using Include="Microsoft.CodeAnalysis.CSharp" />
41+
<Using Include="Microsoft.CodeAnalysis.CSharp.Syntax" />
42+
</ItemGroup>
4343

4444
<ItemGroup>
4545
<PackageReference Include="Buildalyzer.Workspaces" Version="7.0.2" />

Diff for: tests/DendroDocs.Tool.Tests/DocumentationTagContentParsingTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,6 @@ class Test
733733
""".UseUnixNewLine());
734734
}
735735

736-
737-
738736
[TestMethod]
739737
public void TagWithNumberedList_Should_HaveNumberedListItemsAsLinesInComment()
740738
{

0 commit comments

Comments
 (0)