Class: SuppressionGenerator
- Inherits:
-
Object
- Object
- SuppressionGenerator
- Defined in:
- lib/suppression_generator.rb
Overview
Facade that manages the application input and output for suppression generation
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(checkstyle_file_name, suppressions_file_name) ⇒ SuppressionGenerator
constructor
A new instance of SuppressionGenerator.
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
#generate ⇒ Object
15 16 17 |
# File 'lib/suppression_generator.rb', line 15 def generate write_suppressions(SuppressionsPopulator.new(tokenize_checkstyle_output(read_checkstyle_file)).populate) end |