Sha256: 638f01f59034e033db17f9750dc52e9416b175b8e20acb1e37a4ca53bfa50540
Contents?: true
Size: 350 Bytes
Versions: 3
Compression:
Stored size: 350 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danger-wcc-0.0.4 | lib/wcc/commit_lint/empty_line_check.rb |
danger-wcc-0.0.3 | lib/wcc/commit_lint/empty_line_check.rb |
danger-wcc-0.0.2 | lib/wcc/commit_lint/empty_line_check.rb |