OSDN Git Service

[Fix] external-libのソースコードのBOMと整形チェックを除外
authorHabu <habu1010+github@gmail.com>
Sun, 18 Jun 2023 04:58:10 +0000 (13:58 +0900)
committerHabu <habu1010+github@gmail.com>
Thu, 22 Jun 2023 09:34:09 +0000 (18:34 +0900)
external-libディレクトリにはサードパーティ制のソースを置くため、BOMと
clang-formatによる整形のチェックを行わないようにする。

.github/scripts/check-bom.sh
.github/scripts/check-format.sh

index 2322f16..635d52d 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-SRC_FILES=$(find src/ -name \*.cpp -or -name \*.h)
+SRC_FILES=$(find src/ -type f ! -path "src/external-lib/*" \( -name \*.cpp -or -name \*.h \))
 
 STATUS=0
 
index 753a983..340f6d7 100644 (file)
@@ -3,7 +3,7 @@
 sudo apt-get update >/dev/null
 sudo apt-get install clang-format-15 >/dev/null
 
-SRC_FILES=$(find src/ -name \*.cpp -or -name \*.h)
+SRC_FILES=$(find src/ -type f ! -path "src/external-lib/*" \( -name \*.cpp -or -name \*.h \))
 
 clang-format-15 -style=file:.github/scripts/check-clang-format-style -i $SRC_FILES
 clang_format_result=$?