An open API service indexing awesome lists of open source software.

https://github.com/tommorris/bastardhooks

Opinionated Git pre-commit hooks (because only vigilance can stop CoffeeScript)
https://github.com/tommorris/bastardhooks

git-hook precommit-hooks

Last synced: 5 months ago
JSON representation

Opinionated Git pre-commit hooks (because only vigilance can stop CoffeeScript)

Awesome Lists containing this project

README

          

## Bastardhooks

Bastardhooks is a collection of [pre-commit framework](http://pre-commit.com) 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 language](https://tommorris.org/posts/9029)
* `no_stupid_php`: checks to see if the user has attempted to use any particularly idiotic things in PHP (like [`magic_quotes`](http://php.net/manual/en/security.magicquotes.php))