lib/overcommit/message_processor.rb
# Returns a hook status/output tuple from the messages this processor was
# initialized with.
#
# @return [Array<Symbol,String>]
Returns a hook status/output tuple from the messages this processor was
initialized with.
Returns a hook status / output tuple from the messages this processor was initialized with .
def hook_result(messages)
      status, output = basic_status_and_output(messages)
      return [status, output] if status == :pass
      return [status, output] unless @hook.respond_to?(:modified_lines_in_file)
      handle_modified_lines(messages, status)
    end
def hook_result ( messages ) status , output = basic_status_and_output ( messages ) return [ status , output ] if status == :pass return [ status , output ] unless @hook . respond_to? ( :modified_lines_in_file ) handle_modified_lines ( messages , status ) end
Returns a hook status/output tuple from the messages this processor was
initialized with.
Returns a hook status / output tuple from the messages this processor was initialized with .
# Nothing to do if there are no problems to begin with # Return as-is if this type of hook doesn't have the concept of modified lines
None
Array<Symbol,String>
messages
<not_specific>