Ark
Ark copied to clipboard
static analysis should run on each commit through precommit
It is already in the project, but I'm marking this as "todo" because its configuration leaves to be desired. It appears to run only on modified files and thus will report "unused var x" even though it's imported in another file (that isn't modified by the commit).
Maybe there is a way to configure precommit and cppcheck to run only on modified files but take the whole src/ and include/ folders to register definitions and usage?