-
Notifications
You must be signed in to change notification settings - Fork 660
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
Allow warnings to be skipped #2925
Conversation
@ssbarnea I don't think this is the right fix. What this PR does is not output the error about the empty-playbook if the rule is excluded. Still,
if I run
And there is also the question if a |
You are confusing the special rune named "warning" with the warning level. They are two different things, and the warning meta-rule can act as a warning or error (levels). |
There are 3 issues here and I think you would agree that there is sth at least inconsistent if not wrong. It would be great to hear your view on these 3 points.
So,
There is nothing really other than the above that prevents
which is misleading. Ansible-lint has not actually checked 6 files and found them ok, it just stopped after the empty playbook and did not applied most of the rest of the rules. |
Please create a new issue for this and we can work next week to address it. It might need multiple changes but that is not a problem, we should fix it and probably do it will also involve avoiding using "warning" as a rule name. |
I opened #2927. |
Fixes: #2868
Closes: #2917