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)
- Host: GitHub
- URL: https://github.com/tommorris/bastardhooks
- Owner: tommorris
- Created: 2015-06-04T16:22:00.000Z (over 10 years ago)
- Default Branch: default
- Last Pushed: 2020-06-07T09:54:22.000Z (over 5 years ago)
- Last Synced: 2025-01-30T13:42:46.840Z (11 months ago)
- Topics: git-hook, precommit-hooks
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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))