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: https://github.com/SerenityOS/serenity/commit/8f65153b032 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
|
@ -105,7 +105,8 @@ jobs:
|
|||
- ${{ if eq(parameters.lagom_lints, true) }}:
|
||||
- script: |
|
||||
./Meta/check-markdown.sh
|
||||
displayName: 'Check Markdown'
|
||||
git ls-files '*.ipc' | xargs ./Meta/Lagom/Build/Tools/IPCMagicLinter/IPCMagicLinter
|
||||
displayName: 'Run lints that require Lagom'
|
||||
workingDirectory: $(Build.SourcesDirectory)/
|
||||
env:
|
||||
MARKDOWN_CHECK_BINARY: ./Meta/Lagom/Build/markdown-check
|
||||
|
|
|
@ -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
Reference in a new issue