yml/plain-scalar
should ignore 'yes'
/'no'
/'true'
/'false'
/etc. by default
#174
Labels
enhancement
New feature or request
Ran into an issue where an existing YAML file had
'yes'
and'no'
specified.The
yml/plain-scalar
rule was a little egregious and changed those toyes
andno
scalar boolean values. Because these are treated as true/false in YAML, the code consuming these errored about them being the wrong type. https://yaml.org/type/bool.htmlAdding them to the
ignorePatterns
array was sufficient to address this, but this should be handled automatically. Any time one of the reserved words appears in quotes, they should remain in quotes.Workaround:
Example YAML file:
The text was updated successfully, but these errors were encountered: