Class: Brakeman::InteractiveIgnorer

Inherits:
Object
  • Object
show all
Defined in:
lib/brakeman/report/ignore/interactive.rb

Instance Method Summary collapse

Constructor Details

#initialize(file, warnings) ⇒ InteractiveIgnorer

Returns a new instance of InteractiveIgnorer.


5
6
7
8
9
10
11
12
13
# File 'lib/brakeman/report/ignore/interactive.rb', line 5

def initialize file, warnings
  @ignore_config = Brakeman::IgnoreConfig.new(file, warnings)
  @new_warnings = warnings
  @skip_ignored = false
  @skip_rest = false
  @ignore_rest = false
  @quit = false
  @restart = false
end

Instance Method Details

#startObject


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/brakeman/report/ignore/interactive.rb', line 15

def start
  file_menu
  initial_menu

  @ignore_config.filter_ignored

  unless @quit
    final_menu
  end

  if @restart
    @restart = false
    start
  end

  @ignore_config
end