feat: Add unified quality-check script and git hook support

Move the `make doublecheck` functionality into a build system agnostic
script.

`scripts/quality-check.sh` can now be used to check for spelling via
codespell, formatting clang-format and run the unit tests.

`make doublecheck` and `meson compile doublecheck` will call this
script.

Sometimes we have issues with different versions of clang-format locally
vs our CI. In this case SKIP_FORMAT env variable can be set.
This commit is contained in:
Michael Vetter
2026-02-28 13:28:12 +01:00
parent b29326969c
commit 174848499d
4 changed files with 178 additions and 3 deletions

View File

@@ -374,4 +374,5 @@ format-sources: $(core_sources) $(main_source)
spell:
codespell
doublecheck: format check spell
doublecheck:
@./scripts/quality-check.sh --fix-formatting --autotools