Skip to content

Instantly share code, notes, and snippets.

@eqdw
Created May 10, 2011 19:09
Show Gist options
  • Save eqdw/965159 to your computer and use it in GitHub Desktop.
Save eqdw/965159 to your computer and use it in GitHub Desktop.
pre-commit
#!/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