You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran yamlfmt with it's default settings over a codebase with a lot of YAML config.
It removes quotation marks from strings by default. This changes the semantic meaning of the files being formatted in the following ways:
Booleans: "yes" and "no" are strings, but without quotes, they are parsed as booleans. Docker-compose in particular wants strings and chokes when given booleans.
Integers: "10" is a string, but without quotes it is parsed as a number. This can cause problems.
This formatter should only be moving text around, not changing the meaning of it.
The --preserve-quotes flag should be on by default to avoid these issues.
The text was updated successfully, but these errors were encountered:
I ran yamlfmt with it's default settings over a codebase with a lot of YAML config.
It removes quotation marks from strings by default. This changes the semantic meaning of the files being formatted in the following ways:
Booleans:
"yes"
and"no"
are strings, but without quotes, they are parsed as booleans. Docker-compose in particular wants strings and chokes when given booleans.Integers:
"10"
is a string, but without quotes it is parsed as a number. This can cause problems.This formatter should only be moving text around, not changing the meaning of it.
The
--preserve-quotes
flag should be on by default to avoid these issues.The text was updated successfully, but these errors were encountered: