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
roles/acme_certificate/tasks/dns-ns1-cleanup.yml and roles/acme_certificate/tasks/dns-ns1-create.yml are in exclude_paths in .ansiblelint, but errors in them are reported.
The text was updated successfully, but these errors were encountered:
As we have multiple places that can increase the effective list of files producing matches I think it would be better to perform a filtering-out of exclusions just before we report the errors, so we avoid missing errors coming from other places.
Thanks for testing on master, this bug counts as release blocker and I am already working on a fix.
Summary
This was caused by 4faa359.
There seem to be three different bugs:
Runner.is_excluded
no longer works, since it does not convert its input paths to absolute paths, and now it no longer always gets absolute paths.get_lintables()
properly processesexclude_paths
, the excluded files are sometimes added back in byexpand_dirs_in_lintables()
.expand_dirs_in_lintables()
, it still checks these files.Fixing 1. resolves the issue, but only hides 2. (and might or not might solve 3. - that depends on what 3. actually is).
Issue Type
Ansible and Ansible Lint details
Happens with
master
branch, and latest alpha release.STEPS TO REPRODUCE
Run
ansible-lint
in https://github.com/felixfontein/ansible-acme/: https://github.com/felixfontein/ansible-acme/runs/1847849117?check_suite_focus=trueroles/acme_certificate/tasks/dns-ns1-cleanup.yml
androles/acme_certificate/tasks/dns-ns1-create.yml
are inexclude_paths
in.ansiblelint
, but errors in them are reported.The text was updated successfully, but these errors were encountered: