-
Notifications
You must be signed in to change notification settings - Fork 654
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
ansible-lint needs option to treat warnings as errors #236
Comments
for that i guess you can use |
Some of those are ansible warnings and they are just printed out - I have no control over them. Having said that, ansible-review is able to detect duplicate keys (as it's able to perform analysis on inventory files and many other ansible file types) |
@willthames Is something that ansible-lint does more or better than ansible-review? Oops, missed that there is willthames/ansible-review#31 already open regarding this. |
This seems to be an issue still. |
We discovered that ansible-lint has no option for treating warnings as errors which is a real issue on CI environments as warnings are often ignored and lower quality code goes in.
Few examples of warnings:
WARNING: Couldn't open <...> - No such file or directory
[WARNING]: While constructing a mapping from
...duplicate dict key (size). Using last defined value only.
The text was updated successfully, but these errors were encountered: