You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can fix it by creating a new `location` string parameter (which may optionally have a default value - resourceGroup().location is frequently used as a default):
The following example fails this test because a string literal is being passed in to a module parameter that is in turn used for a resource's `location` property:
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/linter.md
+43-41Lines changed: 43 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Use Bicep linter
3
3
description: Learn how to use Bicep linter.
4
4
ms.topic: how-to
5
5
ms.custom: devx-track-bicep
6
-
ms.date: 06/06/2025
6
+
ms.date: 06/19/2025
7
7
---
8
8
9
9
# Use Bicep linter
@@ -12,51 +12,53 @@ The Bicep linter checks Bicep files for syntax errors and best practice violatio
12
12
13
13
## Linter requirements
14
14
15
-
The linter is integrated into the Bicep CLI and the Bicep extension for Visual Studio Code. To use it, you must have version **0.4 or later**.
15
+
The linter is integrated into the Bicep CLI and the Bicep extension for Visual Studio Code. To use it, you must have [Bicep CLI version 0.4 or later](https://github.com/Azure/bicep/releases/tag/v0.4.1).
16
16
17
17
## Default rules
18
18
19
19
The default set of linter rules is minimal and taken from [arm-ttk test cases](../templates/template-test-cases.md). The extension and Bicep CLI check the following rules, which are set to the warning level.
| <aid='what-if-short-circuiting' />[what-if-short-circuiting](./linter-rule-what-if-short-circuiting.md)| off |
60
62
61
63
You can enable or disable all linter rules and control how they are applied using a configuration file. To override the default behavior, create a **bicepconfig.json** file with your custom settings. For more information about applying those settings, see [Add custom settings in the Bicep config file](bicep-config-linter.md).
0 commit comments