Documentation yamllint incorrect comment #4186
Unanswered
MallocArray
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the Ansible-lint documentation page about yamllint-configuration
https://ansible.readthedocs.io/projects/lint/rules/yaml/#yamllint-configuration
It says on the octal-values options that
# yamllint defaults to falseThis does not appear to be an accurate statement based on the yamllint documentation site
https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.octal_values
This states that the default values for
forbid-implicit-octalandforbid-explicit-octalare both true already, but only when theoctal-valuesrule is enabled.So at a minimum, the comments that are inaccurate about what the defaults are should be removed, and since the defaults already are true, the
forbid-*-octalare unnecessary, as just enabling theoctal-valuesrule is enough. (Although being explicit about the setting being true is acceptable)Beta Was this translation helpful? Give feedback.
All reactions