We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HI,
Encountered an invalid finding on the formatter_trailing_comma rule when a list of objects. Encountered this with a local module.
formatter_trailing_comma
Broken in to a small test setup:
module/test/variables.tf:
variable "columns" { type = list(object({ name = string, type = string, })) default = [] description = "XXX" }
terraform/comma_test.tf:
module "comma_test" { source = "../comma_test" columns = [ { name = "name", type = "string" }, { name = "code", type = "string" }, ] }
TFLint output:
terraform/comma_test.tf:3:13: Warning - List value should end with a comma (actual: 4, expected: 2) (formatter_trailing_comma)
The text was updated successfully, but these errors were encountered:
Could be as simple as adding a "the amount of comma's have to be less than the amount expected". 🤔
Sorry, something went wrong.
Hi @thaim ,
Had a chance to look at this one already?
Hi @thaim , Got a chance to look at it already?
Another nice bump after 9 months of no response (and almost 1 year of the ticket being there.
Any news on this @thaim ?
No branches or pull requests
HI,
Encountered an invalid finding on the
formatter_trailing_comma
rule when a list of objects. Encountered this with a local module.Broken in to a small test setup:
module/test/variables.tf:
terraform/comma_test.tf:
TFLint output:
The text was updated successfully, but these errors were encountered: