BigW Consortium Gitlab

brakeman.rake 335 Bytes
Newer Older
1 2
desc 'Security check via brakeman'
task :brakeman do
3 4
  # We get 0 warnings at level 'w3' but we would like to reach 'w2'. Merge
  # requests are welcome!
5
  if system(*%w(brakeman --no-progress --skip-files lib/backup/repository.rb -w3 -z))
6
    puts 'Security check succeed'
7 8 9 10 11
  else
    puts 'Security check failed'
    exit 1
  end
end