enh(ci): add warnings as errors for CppCheck
Description
CppCheck warnings will be all fixed in sight!736 (closed), so it's time to think about enable warnings as errors for CppCheck. In this MR I will also add the possibility to add repository-wide configuration.
Closes #64 (closed)
How to test it?
- Run CppCheck hook with a warning => Sheldon exits with an error
- Run CppCheck hook without any warning => Sheldon exists successfully
- Sheldon respects the new configuration priority (command line option > repository user config > global user config > repository global config)
Edited by Lucas SCHMIDT