Skip to content

Commit 967c553

Browse files
microsoft-github-policy-service[bot]Bicep Automation
andauthored
Reformat code (#17811)
Update code to match the house style 😎 Co-authored-by: Bicep Automation <[email protected]>
1 parent f4c4569 commit 967c553

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/Bicep.Cli.IntegrationTests/DecompileParamsCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public async Task Decompile_CustomOutFileAlreadyExists_ShouldFailWithoutForce()
236236

237237
var (jsonPath, _) = Setup(TestContext, paramFile);
238238
var customOutputPath = FileHelper.GetResultFilePath(TestContext, "existing-file.bicepparam");
239-
239+
240240
// Create the file that already exists
241241
File.WriteAllText(customOutputPath, "existing content");
242242

@@ -277,7 +277,7 @@ public async Task Decompile_CustomOutFileAlreadyExists_ShouldSucceedWithForce()
277277

278278
var (jsonPath, _) = Setup(TestContext, paramFile);
279279
var customOutputPath = FileHelper.GetResultFilePath(TestContext, "force-overwrite.bicepparam");
280-
280+
281281
// Create the file that already exists
282282
File.WriteAllText(customOutputPath, "existing content");
283283

src/Bicep.Core.IntegrationTests/Scenarios/LoadFunctionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ public void LoadYamlContent_DisallowsUnknownEncoding(string encoding)
10501050
}
10511051
}
10521052

1053-
private readonly string TEST_FILES_ARM = """
1053+
private readonly string TEST_FILES_ARM = """
10541054
[
10551055
{
10561056
"relativePath": "File.json",

src/Bicep.Core/Semantics/Namespaces/SystemNamespaceType.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,7 +2276,7 @@ private static FunctionResult LoadDirectoryFileInfoResultBuilder(SemanticModel m
22762276
// ensure determinism by ordering the results
22772277
.OrderByAscending(x => x.RelativePath, StringComparer.OrdinalIgnoreCase)
22782278
.ToJToken();
2279-
2279+
22802280
return new FunctionResult(ConvertJsonToBicepType(token), ConvertJsonToExpression(token));
22812281
}
22822282

@@ -2296,9 +2296,9 @@ private static ResultWithDiagnostic<IEnumerable<LoadDirectoryFileInfoResult>> Tr
22962296
{
22972297
return new(errorBuilder(DiagnosticBuilder.ForPosition(directoryPathArgument.syntax)));
22982298
}
2299-
2299+
23002300
var thisFileUri = model.SourceFile.Uri.ToIOUri();
2301-
return new (directoryFiles.Select(uri =>
2301+
return new(directoryFiles.Select(uri =>
23022302
{
23032303
var baseName = uri.GetFileName();
23042304
var extension = uri.GetExtension().ToString();

src/Bicep.Core/SourceGraph/BicepSourceFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public ResultWithDiagnosticBuilder<IEnumerable<IOUri>> TryListFilesInDirectory(R
125125
{
126126
return new(x => x.FoundFileInsteadOfDirectory(relativePath));
127127
}
128-
128+
129129
return new(x => x.DirectoryDoesNotExist(relativePath));
130130
}
131131

src/Bicep.LangServer/Completions/BicepCompletionProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ private IEnumerable<CompletionItem> GetFileCompletionPaths(SemanticModel model,
14841484
fileItems = CreateFileCompletionItems(model.SourceFile.FileHandle, context.ReplacementRange, fileCompletionInfo, (_) => true, CompletionPriority.High);
14851485
}
14861486

1487-
var dirItems = CreateDirectoryCompletionItems(context.ReplacementRange, fileCompletionInfo,CompletionPriority.Medium);
1487+
var dirItems = CreateDirectoryCompletionItems(context.ReplacementRange, fileCompletionInfo, CompletionPriority.Medium);
14881488

14891489
return fileItems.Concat(dirItems);
14901490
}

0 commit comments

Comments
 (0)