bicep
bicep copied to clipboard
Using optional module names changes linter behavior
Bicep version Bicep CLI version 0.24.24 (5646341b0c)
Describe the bug
Trying to try simplify the bug reported in #12894 I found that when using optionalModuleNames
and not having a name on a module changes the behavior of the bicep linter.
Before
After
Additional context experimental Features Enabled
{
"userDefinedFunctions": true,
"compileTimeImports": true,
"resourceTypedParamsAndOutputs": true,
"prettyPrinting": true,
"symbolicNameCodegen": true,
"sourceMapping": true,
"dynamicTypeLoading": true,
"publishSource": true,
"optionalModuleNames": true
}
I'm aware it's experimental, just posting a bug that I found, I tried looking for similar issue but 1k issues is hard to search :D