thclark/cpplot

Add cpp linting and file checking to pre-commit config

Opened this issue · 0 comments

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

from https://github.com/Lucas-C/pre-commit-hooks