Sha256: e8afcd0f17f45214d66c55bcacda4ecdcca8a64d3695f15522b72788fa71fb1c
Contents?: true
Size: 349 Bytes
Versions: 7
Compression:
Stored size: 349 Bytes
Contents
# frozen_string_literal: true class EmptyLineCheck < CommitCheck MESSAGE = 'Please separate subject from body with newline.' def self.type :empty_line end def initialize(message, _options = {}) @empty_line = message[:empty_line] end def message MESSAGE end def fail? @empty_line && !@empty_line.empty? end end
Version data entries
7 entries across 7 versions & 1 rubygems