Skip to content

Commit 5bcd1ec

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

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

src/Bicep.Cli/Arguments/RootArguments.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public RootArguments(string arg, string commandName) : base(commandName)
2626
case var a when new Regex(Constants.Argument.ThirdPartyNoticesRegex).IsMatch(a):
2727
PrintThirdPartyNotices = true;
2828
break;
29-
};
29+
}
30+
;
3031
}
3132

3233
public bool PrintHelp { get; }

src/Bicep.Core/TypeSystem/DeclaredTypeManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,8 @@ AccessExpressionSyntax access when access.BaseExpression is ForSyntax
18691869
if (GetDeclaredTypeAssignment(parent) is not { } parameterAssignmentTypeAssignment)
18701870
{
18711871
return null;
1872-
};
1872+
}
1873+
;
18731874

18741875
return TryCreateAssignment(parameterAssignmentTypeAssignment.Reference.Type, syntax);
18751876

src/Bicep.Core/Utils/TemplateEvaluator.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ private static void ProcessTemplateLanguageExpressions(Template template, Evalua
174174
if (resource.Type.Value.EqualsOrdinalInsensitively("Microsoft.Resources/deployments"))
175175
{
176176
skipEvaluationPaths.Add("template");
177-
};
177+
}
178+
;
178179

179180
resource.Properties.Value = ExpressionsEngine.EvaluateLanguageExpressionsRecursive(
180181
root: resource.Properties.Value,
@@ -229,7 +230,8 @@ private static Template EvaluateTemplate(JToken? templateJtoken, JToken? paramet
229230
["id"] = $"/subscriptions/{config.SubscriptionId}/resourceGroups/{config.ResourceGroup}",
230231
["location"] = config.RgLocation,
231232
};
232-
};
233+
}
234+
;
233235
if (deploymentScope == TemplateDeploymentScope.ManagementGroup)
234236
{
235237
metadata["managementGroup"] = new JObject
@@ -238,7 +240,8 @@ private static Template EvaluateTemplate(JToken? templateJtoken, JToken? paramet
238240
["name"] = config.ManagementGroup,
239241
["type"] = "Microsoft.Management/managementGroups",
240242
};
241-
};
243+
}
244+
;
242245
// tenant() function is available at all scopes
243246
metadata["tenant"] = new JObject
244247
{

src/Bicep.LangServer/Completions/BicepCompletionContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,8 @@ private static BicepCompletionContextKind GetPropertyValueFlags(List<SyntaxBase>
672672
SyntaxMatcher.IsTailMatch<ObjectPropertySyntax, VariableAccessSyntax, IdentifierSyntax, Token>(matchingNodes, (property, variableAccess, identifier, token) => ReferenceEquals(property.Value, variableAccess)))
673673
{
674674
return BicepCompletionContextKind.PropertyValue | BicepCompletionContextKind.Expression;
675-
};
675+
}
676+
;
676677

677678
// | indicates cursor position
678679
if (

src/Bicep.Local.Extension/Types/TypeDefinitionBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using static Google.Protobuf.Reflection.GeneratedCodeInfo.Types;
1616

1717
namespace Bicep.Local.Extension.Types;
18+
1819
public class TypeDefinitionBuilder
1920
: ITypeDefinitionBuilder
2021
{

0 commit comments

Comments
 (0)