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
Hi @ltog, thanks for taking the time to open an issue, I can reproduce the bug, although if I remove the comment I don't get the same behaviour as you:
From:
---
asdf:
- check_mode: yes
I get:
---
asdf:
- check_mode: 'yes'
It looks like yes and no are not recognized by ruyaml as truthy values. I won't have time to debug this issue, if you can, please submit a PR to fix it
Description
I would like keys
yes
to be converted totrue
but this is being prevented when there are comments on the same line.Steps to reproduce
Start with:
Current behavior
File remains unchanged after running
yamlfix myfile.yaml
:(It works as desired if the comment is being removed.)
Desired behavior
File should be converted to:
Environment
The text was updated successfully, but these errors were encountered: