Skip to content
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

Add rule for disallowing boolean keys #280

Open
DanaKirsh opened this issue Nov 30, 2023 · 1 comment
Open

Add rule for disallowing boolean keys #280

DanaKirsh opened this issue Nov 30, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@DanaKirsh
Copy link

Our software uses yaml files that are then processed by a third party which can't handle boolean yaml keys properly.

It would be helpful to have a rule that disallows boolean yaml keys:

y|Y|yes|Yes|YES|n|N|no|No|NO
|true|True|TRUE|false|False|FALSE
|on|On|ON|off|Off|OFF

https://yaml.org/type/bool.html

@ota-meshi
Copy link
Owner

Thanks for the rule suggestion! That rule sounds good to me.
I think the rule should only be enabled if the YAML document version is 1.1.

@ota-meshi ota-meshi added enhancement New feature or request help wanted Extra attention is needed labels Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants