Skip to content

Commit 8e38f28

Browse files
author
Bicep Automation
committed
Run code formatter
1 parent 9beb0fe commit 8e38f28

63 files changed

Lines changed: 171 additions & 200 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Bicep.Cli.E2eTests/src/local/jsonrpc.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// Licensed under the MIT License.
33

44
import path from "path";
5+
import { Bicep } from "@azure/bicep-rpc-client";
56
import { afterAll, beforeAll, describe, expect, it } from "vitest";
67
import { bicepCli, pathToExampleFile, writeTempFile } from "../utils/fs";
7-
import { Bicep } from "@azure/bicep-rpc-client";
88

99
describe("bicep jsonrpc", () => {
1010
let bicep: Bicep;
@@ -28,9 +28,10 @@ describe("bicep jsonrpc", () => {
2828

2929
it("should build a bicepparam file", async () => {
3030
const result = await bicep.compileParams({
31-
path: pathToExampleFile("bicepparam", "main.bicepparam"), parameterOverrides: {
31+
path: pathToExampleFile("bicepparam", "main.bicepparam"),
32+
parameterOverrides: {
3233
foo: "OVERRIDDEN",
33-
}
34+
},
3435
});
3536

3637
expect(result.success).toBeTruthy();
@@ -196,4 +197,4 @@ kind: 'StorageV2'
196197
expect(result.contents.includes("param foo string")).toBeTruthy();
197198
expect(result.contents.includes(" name: 'mystorageaccount'")).toBeTruthy();
198199
});
199-
});
200+
});

src/Bicep.Cli.IntegrationTests/DecompileCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public async Task Decompile_EmptyTemplate_ShouldSucceed()
116116
[TestMethod]
117117
public async Task Decompile_BicepGeneratedTemplate_ShouldShowBicepGeneratedWarning()
118118
{
119-
var (jsonPath, _) = Setup(TestContext);
119+
var (jsonPath, _) = Setup(TestContext);
120120

121121
var (output, error, result) = await Bicep("decompile", "--force", jsonPath);
122122

src/Bicep.Cli/Commands/ConsoleCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ private string GetPrefix(StringBuilder buffer)
280280
// referenced from how NodeJS REPL handles jumping between words for MacOS:
281281
// https://github.com/nodejs/node/blob/0e2126d8b1c0eb93b105ac53c0939908392cbb42/lib/internal/readline/interface.js#L1435-L1445
282282
// Option key in MacOS maps to Alt
283-
case (ConsoleModifiers.Control, RightArrow) or (ConsoleModifiers.Alt, F):
283+
case (ConsoleModifiers.Control, RightArrow) or (ConsoleModifiers.Alt, F):
284284
editor.MoveToWordBoundary(+1);
285285
break;
286-
286+
287287
case (_, RightArrow):
288288
editor.MoveRight();
289289
break;

src/Bicep.Cli/Helpers/Deploy/DeploymentProcessor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static void AppendError(StringBuilder sb, ExtendedErrorInfo error, int depth)
401401

402402
private static string? GetError(DeploymentOperationDefinition operation)
403403
{
404-
if (operation.Properties.StatusMessage?.TryFromJToken<ErrorResponseMessage>() is not {} errorResponse ||
404+
if (operation.Properties.StatusMessage?.TryFromJToken<ErrorResponseMessage>() is not { } errorResponse ||
405405
errorResponse.Error is not { } error)
406406
{
407407
return null;
@@ -540,4 +540,4 @@ public static DeploymentView GetDeploymentView(LocalDeploymentResult result)
540540
}
541541
}
542542
}
543-
}
543+
}

src/Bicep.Core.IntegrationTests/ExtensionRegistryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
using Bicep.Core.UnitTests.Extensions;
1313
using Bicep.Core.UnitTests.Features;
1414
using Bicep.Core.UnitTests.Utils;
15+
using Bicep.Testing;
1516
using Bicep.Testing.Assertions;
1617
using Bicep.Testing.IO;
17-
using Bicep.Testing;
1818
using FluentAssertions.Execution;
1919
using Microsoft.VisualStudio.TestTools.UnitTesting;
2020
using Newtonsoft.Json.Linq;

src/Bicep.Core.IntegrationTests/ModuleTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
using Bicep.Core.UnitTests.Utils;
1818
using Bicep.IO.Abstraction;
1919
using Bicep.IO.InMemory;
20+
using Bicep.Testing;
2021
using Bicep.Testing.Assertions;
2122
using Bicep.Testing.IO;
2223
using Bicep.Testing.Mocks;
23-
using Bicep.Testing;
2424
using FluentAssertions;
2525
using FluentAssertions.Execution;
2626
using Microsoft.VisualStudio.TestTools.UnitTesting;

src/Bicep.Core.IntegrationTests/PatchDecoratorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation.
1+
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

44
using Bicep.Core.Diagnostics;
@@ -185,4 +185,4 @@ public void Patch_Decorator_Should_Not_Accept_Arguments()
185185
("BCP071", DiagnosticLevel.Error, "Expected 0 arguments, but got 1."),
186186
});
187187
}
188-
}
188+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
using Bicep.Core.UnitTests.Assertions;
88
using Bicep.Core.UnitTests.FileSystem;
99
using Bicep.Core.UnitTests.Utils;
10-
using Bicep.Testing.IO;
1110
using Bicep.Testing;
11+
using Bicep.Testing.IO;
1212
using FluentAssertions;
1313
using FluentAssertions.Execution;
1414
using Microsoft.VisualStudio.TestTools.UnitTesting;

src/Bicep.Core.IntegrationTests/SourceArchiveTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
using Bicep.Core.Utils;
2121
using Bicep.IO.Abstraction;
2222
using Bicep.IO.Utils;
23+
using Bicep.Testing;
2324
using Bicep.Testing.Assertions;
2425
using Bicep.Testing.IO;
2526
using Bicep.Testing.Mocks;
26-
using Bicep.Testing;
2727
using FluentAssertions;
2828
using FluentAssertions.Execution;
2929
using Microsoft.Extensions.DependencyInjection;

src/Bicep.Core.Samples/MockRegistry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
using Bicep.Core.UnitTests.Baselines;
1111
using Bicep.Core.UnitTests.Features;
1212
using Bicep.Core.UnitTests.Utils;
13-
using Bicep.Testing.Mocks;
1413
using Bicep.Testing;
14+
using Bicep.Testing.Mocks;
1515
using FluentAssertions;
1616
using Microsoft.VisualStudio.TestTools.UnitTesting;
1717
using Microsoft.WindowsAzure.ResourceStack.Common.Json;

0 commit comments

Comments
 (0)