Open matferrari-msft opened 9 months ago
This is a bug with the optional module names feature. The linter doesn't take the possibility of an optional name into account.
The generated name expression of a module in a loop is dependent on the copyIndex()
function, so the linter should pass in that situation.
Bicep version Bicep CLI version 0.25.3 (862708594a)
Describe the bug When using
optionalModuleNames
and specifying thescope
property on a module in a for loop without a module name, the linter yields the following warning:To Reproduce
Compile Result