Skip to content

Commit

Permalink
Run brakeman in a separate process
Browse files Browse the repository at this point in the history
We were getting HAML errors; this is down to brakeman not being able
to keep track of every possible dependency and needing to be run in its
own process so as to not load the world (including HAML which is causing
the problem in this instance)

presidentbeef/brakeman#1044
  • Loading branch information
rgarner committed Apr 17, 2019
1 parent cfd230d commit 0fec495
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/tasks/brakeman.rake
Expand Up @@ -2,14 +2,7 @@ if Rails.env.development? || Rails.env.test?
namespace :brakeman do
desc 'Run Brakeman'
task :run do
require 'brakeman'

Brakeman.run(
app_path: '.',
quiet: true,
pager: false,
print_report: true
)
`bundle exec brakeman --quiet --no-pager #{Rails.root}`
end
end
end

0 comments on commit 0fec495

Please sign in to comment.