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

@@ -676,6 +676,10 @@ if get_option('tests')
endif
endif
run_target('doublecheck',
command: ['scripts/quality-check.sh', '--fix-formatting', '--meson']
)
summary({
'Platform': platform,
'Package status': get_option('buildtype'),