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:
@@ -374,4 +374,5 @@ format-sources: $(core_sources) $(main_source)
|
||||
spell:
|
||||
codespell
|
||||
|
||||
doublecheck: format check spell
|
||||
doublecheck:
|
||||
@./scripts/quality-check.sh --fix-formatting --autotools
|
||||
|
||||
Reference in New Issue
Block a user