lab0-c icon indicating copy to clipboard operation
lab0-c copied to clipboard

Fix pre-commit hook for Cppcheck exhaustive checks

Open scc-tw opened this issue 1 year ago • 0 comments

Refine the pre-commit hook to enforce a minimum Cppcheck Version of 1.90, alerting users with an error message and guidance on compiling Cppcheck from source if their version is outdated.

Additionally, upgrade the hook to include the "--check-level=exhaustive" option for Cppcheck versions 2.11 and above, ensuring a comprehensive analysis. This adjustment caters to the enhanced capabilities available from version 2.11, promoting more detailed code quality checks.

Eliminate the "--check-level=" is needed after 2.11. #153

scc-tw avatar Feb 21 '24 15:02 scc-tw