Skip to content

Instantly share code, notes, and snippets.

@oreoshake
Created January 13, 2012 02:11
Show Gist options
  • Save oreoshake/1604252 to your computer and use it in GitHub Desktop.
Save oreoshake/1604252 to your computer and use it in GitHub Desktop.
guard-brakeman usage
# Gemfile
gem 'guard-brakeman'
# Guardfile:
guard 'brakeman' do
watch(%r{^app/.+\.(erb|haml|rhtml|rb)$})
watch(%r{^config/.+\.rb$})
watch(%r{^lib/.+\.rb$})
watch('Gemfile')
end
# As of now, there are no options. Will add ability to exclude certain tests, change the output, etc.
# Tests are broken. I have a concert to go to. It worked for me. Let me know if there are bugs.
# https://github.com/oreoshake/guard-brakeman
@presidentbeef
Copy link

I notice this won't watch views.

Brakeman looks for .html.erb .html.haml .rhtml and .js.erb in app/views/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment