Commit Graph

12 Commits

Author SHA1 Message Date
surtur 6c68efc6ee
chore(.pre-commit-config.yaml): bump hook versions 2022-01-21 05:44:28 +01:00
surtur cf340a200a
pre-commit: add check-yaml,edit cppcheck hook 2022-01-06 22:12:50 +01:00
surtur 71207ed742
refactor(pre-commit): split the test target 2022-01-01 07:45:41 +01:00
surtur 56e6aa6b15
pre-commit: no need for args
as per the website:
  When creating local hooks, there's no reason to put command arguments
  into args as there is nothing which can override them -- instead put
  your arguments directly in the hook entry.

ref: https://pre-commit.com/#arguments-pattern-in-hooks

also add some little niceness to 'make test'
2021-12-29 04:45:23 +01:00
surtur 7f05984946
integrate clang-tidy into cmake
* consolidate everything with the makefile, the "tidy" target now just
  sets the env var that is checked for in CMakeLists
* rm clang-tidy from pre-commit as it's run as part of the "test"
  makefile target later in the file anyway
2021-12-05 05:13:07 +01:00
surtur cf0e548315
pre-commit: exclude the lib folder
[skip ci]
2021-12-05 03:10:50 +01:00
surtur 72bb378709
pre-commit: add 'make san' step
making sure to build with sanitize flags before committing
2021-12-03 20:34:45 +01:00
surtur d8adb1af87
refactor(all): using namespace considered harmful
* project-wide refactor to accomodate removal of "using namespace xyz"
  to stop polluting top-level namespace with "std" as recommended by the
  Google C++ style guide.
* use a pre-commit hook to enforce this

ref:
https://google.github.io/styleguide/cppguide.html#Namespaces
2021-11-13 22:13:50 +01:00
surtur f4463d803e
chore(pre-commit): add check-hooks-apply hook
[skip ci]
2021-10-30 20:57:28 +02:00
surtur ec0691fba1
makefile,pre-commit: add clang-tidy 2021-10-30 20:39:23 +02:00
surtur 519919326e
cppcheck: specify necessary parameters
* that is, both in ci, pre-commit config and in the makefile
* makefile and ci args are a little more strict than the pre-commit ones
* use globs of the file extensions we're after
* add verbosity
2021-10-30 20:05:28 +02:00
surtur b0d4cb2468
add .pre-commit-config.yaml 2021-10-24 23:45:28 +02:00