Skip to content

Commit

Permalink
skip ignored files at discovery
Browse files Browse the repository at this point in the history
ignored files should be skipped early on to prevent other issues such as
tripping on intentionally ignored broken symlinks.
  • Loading branch information
james-powis committed Jan 14, 2024
1 parent 0d7ae7b commit 5417f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yamllint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def find_files_recursively(items, conf):
for root, _dirnames, filenames in os.walk(item):
for f in filenames:
filepath = os.path.join(root, f)
if conf.is_yaml_file(filepath):
if conf.is_yaml_file(filepath) and not conf.is_file_ignored(filepath):
yield filepath
else:
yield item
Expand Down

0 comments on commit 5417f96

Please sign in to comment.