Add cpp linting and file checking to pre-commit config
Opened this issue · 0 comments
thclark commented
Add one or more of:
- cpplint
- clang-check
- cppcheck
From https://gitlab.com/daverona/pre-commit-cpp to the pre-commit hooks that get invoked.
Since some windows users are getting involved (#6) make sure line endings etc are always consistent (although it's less of an issue nowadays with IDEs being sensible) using:
- remove-crlf - Replace CRLF end-lines by LF ones before committing
- remove-tabs - Replace tabs by whitespaces before committing