Sha256: 8b19f7c83ad64e6f09f89dbc989a06966665b5d0af0a338531617cd509ea5e95

Contents?: true

Size: 329 Bytes

Versions: 7

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

class CommitCheck
  def self.fail?(message, options)
    new(message, options || {}).fail?
  end

  def initialize(message, options = {})
  end

  def message
    raise NotImplementedError, 'implement in subclass'
  end

  def fail?
    raise NotImplementedError, 'implement in subclass'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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