(Or any files that start with "." or "#".)
Obviously correct changes to already-reviewed code.
# We only care about .c and .h files
if not (filename.endswith(".c") or filename.endswith(".h")):
continue
+ if filename in EXCLUDE_FILES:
+ continue
# Avoid editor temporary files
- if filename.startswith("."):
+ bname = os.path.basename(filename)
+ if bname.startswith("."):
continue
- if filename in EXCLUDE_FILES:
+ if bname.startswith("#"):
continue
full_path = os.path.join(root,filename)