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
errorsdetails.
Instance Method Details
#format(checkstyle) ⇒ String
Format output for a given errors details
13 14 15 16 17 18 |
# File 'lib/plugins/pre-commit/message/formatter.rb', line 13 def format(checkstyle) throw ArgumentError.new if checkstyle.nil? return nil if checkstyle.good? format_multiple(checkstyle.bad_files) end |