mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +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
|
@ -105,7 +105,8 @@ jobs:
|
||||||
- ${{ if eq(parameters.lagom_lints, true) }}:
|
- ${{ if eq(parameters.lagom_lints, true) }}:
|
||||||
- script: |
|
- script: |
|
||||||
./Meta/check-markdown.sh
|
./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)/
|
workingDirectory: $(Build.SourcesDirectory)/
|
||||||
env:
|
env:
|
||||||
MARKDOWN_CHECK_BINARY: ./Meta/Lagom/Build/markdown-check
|
MARKDOWN_CHECK_BINARY: ./Meta/Lagom/Build/markdown-check
|
||||||
|
|
|
@ -40,6 +40,17 @@ for cmd in \
|
||||||
fi
|
fi
|
||||||
done
|
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"
|
echo "Running Meta/lint-clang-format.sh"
|
||||||
if Meta/lint-clang-format.sh --overwrite-inplace "$@" && git diff --exit-code; then
|
if Meta/lint-clang-format.sh --overwrite-inplace "$@" && git diff --exit-code; then
|
||||||
echo -e "[${GREEN}OK${NC}]: Meta/lint-clang-format.sh"
|
echo -e "[${GREEN}OK${NC}]: Meta/lint-clang-format.sh"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue