forked from forks/qmk_firmware
Fix cformat processing files within ignore folders (#8063)
This commit is contained in:
parent
1877736fa4
commit
5b91c3e0a0
|
@ -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')):
|
||||
|
|
Loading…
Reference in a new issue