2015-04-26 12:48:37 +05:30
|
|
|
desc 'Security check via brakeman'
|
|
|
|
task :brakeman do
|
2015-09-11 14:41:01 +05:30
|
|
|
# We get 0 warnings at level 'w3' but we would like to reach 'w2'. Merge
|
|
|
|
# requests are welcome!
|
2017-08-17 22:00:37 +05:30
|
|
|
if system(*%w(brakeman --no-progress --skip-files lib/backup/repository.rb,app/controllers/unicorn_test_controller.rb -w3 -z))
|
2015-04-26 12:48:37 +05:30
|
|
|
puts 'Security check succeed'
|
|
|
|
else
|
|
|
|
puts 'Security check failed'
|
|
|
|
exit 1
|
|
|
|
end
|
|
|
|
end
|