blob: 2301ec9b2288c16b0a32701e40c679a8f107dfcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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 -w3 -z))
puts 'Security check succeed'
else
puts 'Security check failed'
exit 1
end
end
|