mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 23:06:21 +00:00
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:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user