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
-
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 false
This 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-octal
andforbid-explicit-octal
are both true already, but only when theoctal-values
rule 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-*-octal
are unnecessary, as just enabling theoctal-values
rule is enough. (Although being explicit about the setting being true is acceptable)Beta Was this translation helpful? Give feedback.
All reactions