Sha256: 751bfa2ee33f145ad059c3e5f8a80df2864bd10d1b74119311b681f519f60a71
Contents?: true
Size: 369 Bytes
Versions: 42
Compression:
Stored size: 369 Bytes
Contents
module Overcommit::Hook::CommitMsg # Checks for long commit messages (not good or bad--just fun to point out) class RussianNovel < Base RUSSIAN_NOVEL_LENGTH = 30 def run if commit_message_lines.length >= RUSSIAN_NOVEL_LENGTH return :warn, 'You seem to have authored a Russian novel; congratulations!' end :pass end end end
Version data entries
42 entries across 40 versions & 3 rubygems
Version | Path |
---|---|
overcommit-0.16.0 | lib/overcommit/hook/commit_msg/russian_novel.rb |
overcommit-0.15.0 | lib/overcommit/hook/commit_msg/russian_novel.rb |