Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 40a7ba5

Browse files
author
Ben Thorner
committed
Replace brakeman ignore with minimum warning level
1 parent c30e09d commit 40a7ba5

File tree

3 files changed

+4
-112
lines changed

3 files changed

+4
-112
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ require_relative 'config/application'
55

66
Rails.application.load_tasks
77

8-
task default: %i(spec lint brakeman:run)
8+
task default: %i(spec lint brakeman)

config/brakeman.ignore

Lines changed: 0 additions & 103 deletions
This file was deleted.

lib/tasks/brakeman.rake

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
namespace :brakeman do
2-
desc "Run Brakeman"
3-
task :run, :output_files do |_, args|
4-
require 'brakeman'
5-
6-
files = args[:output_files].split(' ') if args[:output_files]
7-
Brakeman.run app_path: ".", output_files: files, print_report: true
8-
end
1+
desc "Run Brakeman"
2+
task :brakeman do
3+
sh 'brakeman -w2 -q'
94
end

0 commit comments

Comments
 (0)