Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add clang-format script and precommit hook #12651
Adds new scripts
Should NOT be merged until the other formatting PRs are merged
- I get no feedback from the pre-commit script, only the fact that the changes didn't pass the check:
$ git commit -m 'test' husky > npm run -s precommit (node v6.11.3) husky > pre-commit hook failed (add --no-verify to bypass)
- It seems like the script checks all files, but should check only new and modified lines that are going to be commited.
It won't be possible to make changes in the docs for instance if somehow there are incorrectly formatted C++ code somewhere.
git-clang-format help here?