for_each = [for x in [var.versioning]: x if x.enabled]
...the auto-formatter will shuffle the spacing around incorrectly like this:
for_each = [for x in[var.versioning] : x if x.enabled]
The extra space before the colon should be easy to address. The space after the in keyword may be trickier, since to the formatting rules it looks like an index expression against an identifier in. The formatter might need a special case for this one as a result.
Given a for expression like this:
...the auto-formatter will shuffle the spacing around incorrectly like this:
The extra space before the colon should be easy to address. The space after the
in
keyword may be trickier, since to the formatting rules it looks like an index expression against an identifierin
. The formatter might need a special case for this one as a result.