mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +00:00
Meta: Run IPC magic number linter during CI and pre-commit
This commit is contained in:
parent
585554a245
commit
8f65153b03
2 changed files with 13 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue