Closed TheLastChosenOne closed 1 year ago
I found the same issue, in addition even an explicit --exclude
on the ansible-lint invocation doesn't work, either.
Actually this is a duplicate of https://github.com/ansible/ansible-lint/issues/3477 which is already being worked upon.
duplicate from #3477. The fix provided there will also fix this.
When adding single ticks, ansible-lint will not crash - but it's still loading the file.
This is not a real solution. With adding ticks you are converting the type to a string which obviously will work
As said, duplicate of #3477 so I'm closing this one.
We are using ansible-lint via pre-commit-hook. We got a .ansible-lint configuration file with following content:
special lines in our mkdocs.yml:
Summary
ansible-lint 6.16.2 tries to parse the file, even though it's excluded via configuration file and prints following error message:
Error message:
ansible-lint 6.15.0 will ignore the mkdocs.yml file like it should.
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
test.yml
fileansible-lint
configuration file with the exclude_paths content above to exclude the newly created test.yml fileansible-lint -v
in this directoryWhen adding single ticks, ansible-lint will not crash - but it's still loading the file. We got these lines from squidfunks documentation: https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/?h=emoji#configuration
Working:
Desired Behavior
Using ansible-lint 6.15.0 it's working as expected and not crashing while trying to load a file which it should not load in the first place.
Actual Behavior
ansible-lint crashes and returns a non-zero error code.