]> git.openstreetmap.org Git - chef.git/commit
Add a pre-commit hook to run rubocop
authorTom Hughes <tom@compton.nu>
Wed, 4 Feb 2015 19:22:14 +0000 (19:22 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 4 Feb 2015 22:44:49 +0000 (22:44 +0000)
commit98cc5f14caf136d786fea344a4742735ca192da2
treeba4008434454757f17e7b5186f64fc91a9197683
parentb731350aa2c7f06d66130568bef41d6fa91bbe2c
Add a pre-commit hook to run rubocop

To run rubocop on checkin, copy this script to .git/hooks and
it will cause any attempt to commit code which fails rubcop to
be blocked.
hooks/pre-commit [new file with mode: 0755]