skip files passed in if matching the skip glob

This commit is contained in:
Brian Witt
2021-05-04 11:09:13 -07:00
parent a65c8c0bc4
commit 19c223f2c7
2 changed files with 8 additions and 3 deletions

View File

@ -840,7 +840,7 @@ def main(*args):
# skip (relative) directories
dirs[:] = [dir_ for dir_ in dirs if not glob_match.match(dir_)]
else:
elif not glob_match.match(filename): # skip files
bad_count += parse_file(
filename, colors, summary, misspellings, exclude_lines,
file_opener, word_regex, ignore_word_regex, context, options)