ignore CMakeFiles while format code style

This commit is contained in:
guoling
2019-12-16 21:29:25 +08:00
parent 46f1cd9ea4
commit 812356fc2d
+1 -1
View File
@@ -6,7 +6,7 @@ import os.path
path = os.getcwd()
for root, dirs, files in os.walk(path):
if root.endswith("/openssl") or root.endswith("/zlib") or (root.find("/build/generated/") != -1) or (root.find("cmake-build-debug/") != -1) or (root.find("cmake-build-release") != -1):
if root.endswith("/openssl") or root.endswith("/zlib") or (root.find("/build/generated/") != -1) or (root.find("cmake-build-debug/") != -1) or (root.find("cmake-build-release") != -1) or (root.find("CMakeFiles") != -1):
continue
for name in files:
if (name.endswith(".h") or name.endswith(".m") or name.endswith(".mm") or name.endswith(".hpp") or name.endswith(".cpp") or name.endswith(".java")):