Closed mrwacky42 closed 1 year ago
This is resolved in https://github.com/terraform-linters/tflint-ruleset-terraform/releases/tag/v0.3.0 by https://github.com/terraform-linters/tflint-ruleset-terraform/pull/90. If you go ahead and specify that plugin version and run tflint --init
you'll be set. This is a good idea anyway to enable you to use other plugins and get faster updates.
Otherwise, it's already been updated in TFLint's base branch by Dependabot as well, and so the next CLI release will bundle 0.3.0 or later.
See also #101, prompted by this I noticed that there were false negatives for JSON files. My first step there was adding test coverage against valid cases, including one comparable to yours, which confirmed they are already fixed. But then I was also able to restore detection of legacy syntax too.
Derp! I didn't bother to realize that there's a separate plugin for HCL itself. Thanks.
All good, it's bundled, so you don't have to notice out of the box. But like I said, a good idea anyway, and will get you patched up immediately.
Summary
When escaping quotes in
.tf.json
files,tflint
has a bad day:This looks like the same issue as terraform-linters/tflint#694.
Command
tflint
Terraform Configuration
TFLint Configuration
Output
TFLint Version
0.46.1
Terraform Version
1.4.6
Operating System