# frozen_string_literal: true module Overcommit::Hook::CommitMsg # Ensures commit message subject lines are followed by a blank line. class SingleLineSubject < Base def run return :pass if empty_message? unless commit_message_lines[1].to_s.strip.empty? return :warn, 'Subject should be one line and followed by a blank line' end :pass end end end