Open fnkr opened 2 years ago
FYI, the same linter warning fires in WebStorm with string interpolation - it would be sweet if this could be fixed. :-)
The key name "FOO_${i}"
gets the same red underline (and dropdown) as your screenshot above (although the code itself actually works just fine):
locals {
my_list = [
for i in range(3) : {
"FOO_${i}" = "BAR"
}
]
}
I am using version 223.8214.6 of the plugin and this issue still exists
Prerequisites
Installation details
Help->About->Copy to Clipboard
): 2021.3.3Settings->Plugins
): 0.7.15terraform -v
): 1.1.7Terraform Configuration Files
Expected Behavior
The linter should not produce any warnings for this Terraform code.
Actual Behavior
The linter complains that "argument names must not be quoted" even through argument names can be quoted here. In fact, in this case the opposite is true. I must use quotes here since my argument names contain "." and Terraform would evaluate those as variables without the quotes.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example: