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

Version Path
danger-wcc-0.1.4 lib/wcc/commit_lint/empty_line_check.rb
danger-wcc-0.1.3 lib/wcc/commit_lint/empty_line_check.rb
danger-wcc-0.1.2 lib/wcc/commit_lint/empty_line_check.rb
danger-wcc-0.1.1 lib/wcc/commit_lint/empty_line_check.rb
danger-wcc-0.1.0 lib/wcc/commit_lint/empty_line_check.rb
danger-wcc-0.0.6 lib/wcc/commit_lint/empty_line_check.rb
danger-wcc-0.0.5 lib/wcc/commit_lint/empty_line_check.rb