Rules for yamllint set to warning aren't automatically warnings in ansible-lint as well. It only does that when the rule is also added to warn_list, which is duplicating configs.
Issue Type
Bug Report
OS / ENVIRONMENT
ansible-lint --version
ansible-lint 24.9.2 using ansible-core:2.17.4 ansible-compat:24.9.1 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.8
yaml[line-length]: Line too long (413 > 80 characters) (warning)
initiate.yml:25
yaml[line-length]: Line too long (413 > 80 characters) (warning)
initiate.yml:29
Actual Behavior
yaml[line-length]: Line too long (413 > 80 characters)
initiate.yml:25
yaml[line-length]: Line too long (413 > 80 characters)
initiate.yml:29
This seems like an ask for reasonable behavior. We do look at .yamllint, so we could use that to inform the level of yaml rules, though I'm not sure how complicated that would be.
Summary
Rules for yamllint set to warning aren't automatically warnings in ansible-lint as well. It only does that when the rule is also added to
warn_list
, which is duplicating configs.Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
.yamllint
Desired Behavior
Actual Behavior