瀏覽代碼

Add an exception for thirdparty subdirectories in file_format.sh

This exception is also present in clang_format.sh and is needed in some
cases.
Riteo Siuga 2 年之前
父節點
當前提交
10eaf0c52b
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      misc/scripts/file_format.sh

+ 3 - 1
misc/scripts/file_format.sh

@@ -31,7 +31,9 @@ while IFS= read -rd '' f; do
         continue
     elif [[ "$f" == *"po" ]]; then
         continue
-    elif [[ "$f" == "thirdparty"* ]]; then
+    elif [[ "$f" == "thirdparty/"* ]]; then
+        continue
+    elif [[ "$f" == *"/thirdparty/"* ]]; then
         continue
     elif [[ "$f" == "platform/android/java/lib/src/com/google"* ]]; then
         continue