mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +00:00
Meta: Run IPC magic number linter during CI and pre-commit
This commit is contained in:
parent
585554a245
commit
8f65153b03
Notes:
sideshowbarker
2024-07-18 01:29:36 +09:00
Author: https://github.com/BenWiederhake
Commit: 8f65153b03
Pull-request: https://github.com/SerenityOS/serenity/pull/10748
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/trflynn89
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