-
add overcommit. to catch things like, long commit messages
echo "2.3.0" > .ruby-version gem install overcommit overcommit --install overcommit --sign run overcommit --list (to see list of hooks) run overcommit --run (to test it out once)
some interesting hooks to try out, but not enabled:
- PostCheckout:IndexTags (guard seems better though)
- PostCheckout:NpmInstall (guard seems better though)
- PostCheckout:SubmoduleStatus
- PostCommit:GitGuilt
- PreCommit:ExecutePermissions (sds/overcommit#339)
- PreCommit:HtmlHint (https://github.com/yaniswang/HTMLHint)
- PreCommit:HtmlTidy (http://www.html-tidy.org)
- PreCommit:ImageOptim (https://github.com/toy/image_optim. not sure. needs to be part of the build step. maybe as a warning)
- PreCommit:JsonSyntax
- PreCommit:Sqlint
- PreCommit:W3cCss (is there an offline version ? https://github.com/alexdunae/w3c_validators)
- PreCommit:W3cHtml
although guard (https://github.com/guard/guard) or some other node alternative seems better for some of these
PostCheckout
rules
Last active
February 11, 2016 18:20
-
-
Save deepak/27a55020bfcb56546da1 to your computer and use it in GitHub Desktop.
overcommit hooks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment