Class: RuboCop::Diff::Formatter
- Inherits:
-
Formatter::BaseFormatter
- Object
- Formatter::BaseFormatter
- RuboCop::Diff::Formatter
- Defined in:
- lib/rubocop/diff/formatter.rb
Instance Method Summary collapse
- #file_finished(file, offenses) ⇒ Object
-
#initialize(*args) ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize(*args) ⇒ Formatter
Returns a new instance of Formatter.
6 7 8 9 |
# File 'lib/rubocop/diff/formatter.rb', line 6 def initialize(*args) exit(1) unless in_git_dir? super end |
Instance Method Details
#file_finished(file, offenses) ⇒ Object
11 12 13 |
# File 'lib/rubocop/diff/formatter.rb', line 11 def file_finished(file, offenses) puts "file_finished" end |