class Overcommit::Hook::CommitMsg::RussianNovel

Checks for long commit messages (not good or bad–just fun to point out)

Constants

RUSSIAN_NOVEL_LENGTH

Public Instance Methods

run() click to toggle source
# File lib/overcommit/hook/commit_msg/russian_novel.rb, line 8
def run
  if commit_message_lines.length >= RUSSIAN_NOVEL_LENGTH
    return :warn, 'You seem to have authored a Russian novel; congratulations!'
  end

  :pass
end