Class: PreCommit::Message::Formatter
- Inherits:
-
Object
- Object
- PreCommit::Message::Formatter
- Defined in:
- lib/plugins/pre_commit/message/formatter.rb
Overview
Responsible for format a given output
Instance Method Summary collapse
-
#format(checkstyle) ⇒ String
Format output for a given
errors
details.
Instance Method Details
#format(checkstyle) ⇒ String
Format output for a given errors
details
15 16 17 18 19 20 |
# File 'lib/plugins/pre_commit/message/formatter.rb', line 15 def format(checkstyle) throw ArgumentError.new if checkstyle.nil? return nil if checkstyle.good? format_multiple(checkstyle.bad_files) end |