Class: SuppressionGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/suppression_generator.rb

Overview

Facade that manages the application input and output for suppression generation

Instance Method Summary collapse

Constructor Details

#initialize(checkstyle_file_name, suppressions_file_name) ⇒ SuppressionGenerator

Returns a new instance of SuppressionGenerator.



10
11
12
13
# File 'lib/suppression_generator.rb', line 10

def initialize(checkstyle_file_name, suppressions_file_name)
  @checkstyle_file_name = checkstyle_file_name
  @suppressions_file_name = suppressions_file_name
end

Instance Method Details

#generateObject



15
16
17
# File 'lib/suppression_generator.rb', line 15

def generate
  write_suppressions(SuppressionsPopulator.new(tokenize_checkstyle_output(read_checkstyle_file)).populate)
end