More flexible file path specification in .ansible-lint-ignore #3594
Unanswered
okomestudio
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current scheme to match filename and ignore rule appears to be very strict and inflexible:
ansible-lint/src/ansiblelint/__main__.py
Lines 288 to 294 in 943444b
which effectively means that we need to list exact filenames to match in .ansible-lint-ignore. This can make ignore ruleset creation very tedious, as we have to be aware of all filenames for which the rulesets should apply.
Could we allow some kind of wilecard filename specification, such as with https://github.com/cpburnz/python-pathspec, so that we can target filenames with .gitignore-like format?
Beta Was this translation helpful? Give feedback.
All reactions