Skip to content

Instantly share code, notes, and snippets.

View brookemahoney's full-sized avatar

Brooke Mahoney brookemahoney

View GitHub Profile
@brookemahoney
brookemahoney / pre-commit
Last active August 29, 2015 14:06
Git pre-commit hook for Drupal development
#!/usr/bin/php
<?php
/**
* @file
* If this file has an exit status other than 0, the commit will fail.
*/
// For each check, set to 1 to enable or 0 to disable.
$check_unwanted_strings = 1;
$check_grunt = 1;