From 8f65153b0324b3fd401e69dfaeeec7d6960a9392 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Mon, 1 Nov 2021 17:20:54 +0100 Subject: Meta: Run IPC magic number linter during CI and pre-commit --- Meta/lint-ci.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Meta/lint-ci.sh') diff --git a/Meta/lint-ci.sh b/Meta/lint-ci.sh index 785be689d8..c7d40972b9 100755 --- a/Meta/lint-ci.sh +++ b/Meta/lint-ci.sh @@ -40,6 +40,17 @@ for cmd in \ fi done +if [ -x ./Build/lagom/Tools/IPCMagicLinter/IPCMagicLinter ]; then + if git ls-files '*.ipc' | xargs ./Build/lagom/Tools/IPCMagicLinter/IPCMagicLinter; then + echo -e "[${GREEN}OK${NC}]: IPCMagicLinter (in Meta/lint-ci.sh)" + else + echo -e "[${RED}FAIL${NC}]: IPCMagicLinter (in Meta/lint-ci.sh)" + ((FAILURES+=1)) + fi +else + echo -e "[${GREEN}SKIP${NC}]: IPCMagicLinter (in Meta/lint-ci.sh)" +fi + echo "Running Meta/lint-clang-format.sh" if Meta/lint-clang-format.sh --overwrite-inplace "$@" && git diff --exit-code; then echo -e "[${GREEN}OK${NC}]: Meta/lint-clang-format.sh" -- cgit v1.2.3