gitlab-org--gitlab-foss/lib/tasks/brakeman.rake
2017-04-26 16:39:12 +02:00

11 lines
378 B
Ruby

desc 'Security check via brakeman'
task :brakeman do
# We get 0 warnings at level 'w3' but we would like to reach 'w2'. Merge
# requests are welcome!
if system(*%w(brakeman --no-progress --skip-files lib/backup/repository.rb,app/controllers/unicorn_test_controller.rb -w3 -z))
puts 'Security check succeed'
else
puts 'Security check failed'
exit 1
end
end