Skip to content

Commit

Permalink
Fix 32 exclude paths limit
Browse files Browse the repository at this point in the history
Fixes: #1574
  • Loading branch information
ssbarnea committed May 22, 2021
1 parent 64fc18a commit 281402e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ansiblelint/file_utils.py
Expand Up @@ -227,7 +227,9 @@ def discover_lintables(options: Namespace) -> Dict[str, Any]:
if out is None:
exclude_pattern = "|".join(str(x) for x in options.exclude_paths)
_logger.info("Looking up for files, excluding %s ...", exclude_pattern)
out = WcMatch('.', exclude_pattern=exclude_pattern, flags=RECURSIVE).match()
out = WcMatch(
'.', exclude_pattern=exclude_pattern, flags=RECURSIVE, limit=256
).match()

return OrderedDict.fromkeys(sorted(out))

Expand Down

0 comments on commit 281402e

Please sign in to comment.