Skip to content
Snippets Groups Projects
Commit e10a1b03 authored by Campbell Barton's avatar Campbell Barton
Browse files

check_style_c: skip dotfiles

parent 0b35e206
No related branches found
No related tags found
No related merge requests found
......@@ -1347,9 +1347,11 @@ def scan_source_recursive(dirpath, args):
dirnames[:] = [d for d in dirnames if not d.startswith(".")]
for filename in filenames:
filepath = join(dirpath, filename)
if filename_check is None or filename_check(filepath):
yield filepath
# avoid scanning backup files
if not filename.startswith("."):
filepath = join(dirpath, filename)
if filename_check is None or filename_check(filepath):
yield filepath
def is_source(filename):
# skip temp files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment