mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
Meta: Add script that runs all lints
This commit is contained in:
parent
a49802558d
commit
3cd39097f6
Notes:
sideshowbarker
2024-07-19 01:31:07 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/3cd39097f6a Pull-request: https://github.com/SerenityOS/serenity/pull/3980
1 changed files with 22 additions and 0 deletions
22
Meta/lint-ci.sh
Executable file
22
Meta/lint-ci.sh
Executable file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
|
cd "${script_path}/.." || exit 1
|
||||||
|
|
||||||
|
for cmd in \
|
||||||
|
Meta/check-style.sh \
|
||||||
|
Meta/lint-executable-resources.sh \
|
||||||
|
Meta/lint-ipc-ids.sh \
|
||||||
|
Meta/lint-shell-scripts.sh ; do
|
||||||
|
echo "Running $cmd"
|
||||||
|
"$cmd"
|
||||||
|
echo "$cmd successful"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Running Meta/lint-clang-format.sh"
|
||||||
|
Meta/lint-clang-format.sh --overwrite-inplace && git diff --exit-code
|
||||||
|
echo "Meta/lint-clang-format.sh successful"
|
||||||
|
echo "(Not running lint-missing-resources.sh due to high false-positive rate.)"
|
||||||
|
echo "(Also look out for check-symbols.sh, which can only be executed after the build!)"
|
Loading…
Reference in a new issue