You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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