Fix cformat processing files within ignore folders (#8063)

master
Joel Challis 2020-02-02 16:33:17 +00:00 committed by GitHub
parent 1877736fa4
commit 5b91c3e0a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ def cformat(cli):
for dirpath, dirnames, filenames in os.walk(dir):
if any(i in dirpath for i in ignores):
dirnames.clear()
continue
for name in filenames:
if name.endswith(('.c', '.h', '.cpp')):