Created
May 10, 2011 19:09
-
-
Save eqdw/965159 to your computer and use it in GitHub Desktop.
pre-commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
result = `grep -rls "debugger" *` | |
if result != "" && result !~ /^log\/development\.log$/ | |
puts "NEVER DO THIS AGAIN. THERE ARE DEBUG STATEMENTS IN THE CODEBASE" | |
puts "grep results: #{result}" | |
exit(1) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment