class Overcommit::Hook::CommitMsg::EmptyMessage

Checks that the commit message is not empty

Public Instance Methods

run() click to toggle source
# File lib/overcommit/hook/commit_msg/empty_message.rb, line 6
def run
  return :pass unless empty_message?

  [:fail, 'Commit message should not be empty']
end