Commit Graph

3 Commits

Author SHA1 Message Date
Michael Tautschnig da0b0d5581 Make the pre-commit hook report non-temporary path names (#477)
This also fixes the problem of failing to deduce the correct include
guards.
2017-02-02 20:39:09 +00:00
Michael Tautschnig 3ceecf6848 Remove explicit "python" as cpplint.py is executable
Follow-up to #433 as suggested by @peterschrammel.
2017-01-18 06:49:44 -08:00
Peter Schrammel eb4e3487bc Pre-commit hook to run cpplint
To install the hook
cp .githooks/pre-ommit .git/hooks/pre-commit
or use a symbolic link.
Then, when running git commit, you should get the linter output
(if any) before being prompted to enter a commit message.
To bypass the check (e.g. if there was a false positive),
add the option --no-verify.
2016-12-23 15:18:30 +01:00