-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
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
Pretty printer doesn't add quotes #95
Comments
We actually can't add quotes safely because what if the application intended it to be unquoted? They are semantically the same but stylistically different. For example, why wouldn't we do this:
Or, in the TF resource case, what do we quote?
etc. See all the ambiguities? A schema-less printer can't know, so we mimic the user input. |
apparentlymart
pushed a commit
that referenced
this issue
Sep 9, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
hclfmt
, the following syntax is acceptable:I would have expected this to be corrected by the pretty pretty to include quotes around the resource name, i.e.
The text was updated successfully, but these errors were encountered: