-
Notifications
You must be signed in to change notification settings - Fork 664
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
skip_list syntax-check is ignored #1594
Comments
This is exactly a bug, syntax-check cannot be skipped but I will keep it open as the message gives is misleading users to believe they can skip this one. You can only exclude files but their syntax must be valid, that comes from ansible itself. |
@ssbarnea thanks for the clarification. Found this whilst having the inventory information separated from the code. Might it be possible to add an option like |
There is no need to pass extra args as you can use |
Summary
When trying to disable the
syntax-check
withskip_list:
in the config file, the linter is completely ignoring it. Addingsyntax-check
towarn_list:
works like expected.Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
Ubuntu 20
STEPS TO REPRODUCE
Create a config file under
~/.ansible-lint.yml
Create a playbook that leads to an error during
ansible-playbook --syntax-check playbook.yml
:Run
ansible-lint -c ~/.ansible-lint.yml playbook.yml
Desired Behaviour
The linter should skip the
syntax-check
.Actual Behaviour
The text was updated successfully, but these errors were encountered: