bicep icon indicating copy to clipboard operation
bicep copied to clipboard

Using optional module names changes linter behavior

Open jahead opened this issue 1 year ago • 0 comments

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 image

After image

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

jahead avatar Jan 03 '24 11:01 jahead