mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
C#: Fix formatting with 'dotnet format'
This commit is contained in:
@@ -15,14 +15,14 @@ indent_style = space
|
||||
tab_width = 4
|
||||
|
||||
# New line preferences
|
||||
end_of_line = crlf
|
||||
insert_final_newline = false
|
||||
end_of_line = {cr|lf|crlf}
|
||||
insert_final_newline = false:silent
|
||||
|
||||
#### .NET Coding Conventions ####
|
||||
|
||||
# Organize usings
|
||||
dotnet_separate_import_directive_groups = false
|
||||
dotnet_sort_system_directives_first = false
|
||||
# dotnet_separate_import_directive_groups = false
|
||||
# dotnet_sort_system_directives_first = false
|
||||
|
||||
# this. and Me. preferences
|
||||
dotnet_style_qualification_for_event = false:silent
|
||||
|
||||
@@ -12,11 +12,16 @@ namespace Semmle.Autobuild.CSharp
|
||||
BuildScript GetCommand(string? solution)
|
||||
{
|
||||
string standalone;
|
||||
if (builder.CodeQLExtractorLangRoot is object && builder.CodeQlPlatform is object) {
|
||||
if (builder.CodeQLExtractorLangRoot is object && builder.CodeQlPlatform is object)
|
||||
{
|
||||
standalone = builder.Actions.PathCombine(builder.CodeQLExtractorLangRoot, "tools", builder.CodeQlPlatform, "Semmle.Extraction.CSharp.Standalone");
|
||||
} else if (builder.SemmlePlatformTools is object) {
|
||||
}
|
||||
else if (builder.SemmlePlatformTools is object)
|
||||
{
|
||||
standalone = builder.Actions.PathCombine(builder.SemmlePlatformTools, "csharp", "Semmle.Extraction.CSharp.Standalone");
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
return BuildScript.Failure;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user