Skip to content

Commit 2e21564

Browse files
committed
C#: Fix formatting with 'dotnet format'
1 parent 7f86768 commit 2e21564

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

csharp/.editorconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ indent_style = space
1515
tab_width = 4
1616

1717
# New line preferences
18-
end_of_line = crlf
19-
insert_final_newline = false
18+
end_of_line = {cr|lf|crlf}
19+
insert_final_newline = false:silent
2020

2121
#### .NET Coding Conventions ####
2222

2323
# Organize usings
24-
dotnet_separate_import_directive_groups = false
25-
dotnet_sort_system_directives_first = false
24+
# dotnet_separate_import_directive_groups = false
25+
# dotnet_sort_system_directives_first = false
2626

2727
# this. and Me. preferences
2828
dotnet_style_qualification_for_event = false:silent

csharp/autobuilder/Semmle.Autobuild.CSharp/StandaloneBuildRule.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ public BuildScript Analyse(Autobuilder builder, bool auto)
1212
BuildScript GetCommand(string? solution)
1313
{
1414
string standalone;
15-
if (builder.CodeQLExtractorLangRoot is object && builder.CodeQlPlatform is object) {
15+
if (builder.CodeQLExtractorLangRoot is object && builder.CodeQlPlatform is object)
16+
{
1617
standalone = builder.Actions.PathCombine(builder.CodeQLExtractorLangRoot, "tools", builder.CodeQlPlatform, "Semmle.Extraction.CSharp.Standalone");
17-
} else if (builder.SemmlePlatformTools is object) {
18+
}
19+
else if (builder.SemmlePlatformTools is object)
20+
{
1821
standalone = builder.Actions.PathCombine(builder.SemmlePlatformTools, "csharp", "Semmle.Extraction.CSharp.Standalone");
19-
} else {
22+
}
23+
else
24+
{
2025
return BuildScript.Failure;
2126
}
2227

0 commit comments

Comments
 (0)