Skip to content

Commit

Permalink
Ignore symlinks early on, before following them
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Jan 13, 2024
1 parent 0d7ae7b commit e5849e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yamllint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ def run(argv=None):

for file in find_files_recursively(args.files, conf):
filepath = file[2:] if file.startswith('./') else file
if conf.is_file_ignored(filepath):
continue
try:
with open(file, newline='') as f:
problems = linter.run(f, conf, filepath)
Expand Down

0 comments on commit e5849e8

Please sign in to comment.