Bastardhooks is a collection of pre-commit framework hooks to enforce code style preferences of mean, vicious bastards.
Hooks provided include:
check_for_rspec_focus
: ensures that you don't check in RSpec tests that have focus words (e.g.fscenario
)no_coffee
: prevents the check-in of CoffeeScript code based on a slightly irrational dislike of the languageno_stupid_php
: checks to see if the user has attempted to use any particularly idiotic things in PHP (likemagic_quotes
)