Suppressing Autofix when syntax-check violations are found #3978
Unanswered
TamiTakamiya
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
-
When ansible-lint is executed without
--fix
option against a repsitory, for example https://github.com/IBM/Ansible-OpenShift-Provisioning.git , and detects syntax-violations, only those syntax-violations are reported on the console output.When ansible-lint is executed with
--fix=all
option against such a repository, in addition to reporting those syntax-violations autofixes are applied to other files.In the ansible-lint documentation, it reads:
i.e., it does not mention about the files that are not found syntax errors. So the current behavior might be "working as designed". However, I think suppressing Autofix when syntax-check violations would be more desirable unless those syntax-check violations themselves are auto-fixed. What do you think?
Beta Was this translation helpful? Give feedback.
All reactions