Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit d4f5693

Browse files
committedDec 21, 2012
#1 Support quiet option
1 parent 7aeac11 commit d4f5693

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎lib/guard/brakeman.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ def initialize(watchers = [], options = { })
2929
:notifications => true,
3030
:run_on_start => false,
3131
:chatty => false,
32-
:min_confidence => 1
33-
}.update(options)
32+
:min_confidence => 1,
33+
:quiet => true
34+
}.merge!(options)
3435
end
3536

3637
# Gets called once when Guard starts.
@@ -40,6 +41,7 @@ def initialize(watchers = [], options = { })
4041
def start
4142
@scanner_opts = ::Brakeman::set_options({:app_path => '.'}.merge(@options))
4243
@options.merge!(@scanner_opts)
44+
puts @scanner_opts.inspect
4345
@tracker = ::Brakeman::Scanner.new(@scanner_opts).process
4446

4547
if @options[:run_on_start]

0 commit comments

Comments
 (0)
This repository has been archived.