Running pre-commit with Cppcheck 2.4.1 on my machine does not provide any output despite the return code not being 0.
Actual:
$ pre-commit run --all-files cppcheck
cppcheck.................................................................Failed
- hook id: cppcheck
- exit code: 1
Expected:
cppcheck.................................................................Failed
- hook id: cppcheck
- exit code: 1
/tmp/temp/src/err.cpp:2:18: style: Unused variable: i [unusedVariable]
int main() { int i; return 10; }
^