Sha256: a7618459dd0e5500dabb8668423f1709a3a01a5c779dcbd2965e61d5d7c98e81

Contents?: true

Size: 366 Bytes

Versions: 3

Compression:

Stored size: 366 Bytes

Contents

module Danger
  class DangerCommitLint < Plugin
    class SubjectWordsCheck < CommitCheck # :nodoc:
      MESSAGE = 'Please use more than one word.'.freeze

      def self.type
        :subject_words
      end

      def initialize(message)
        @subject = message[:subject]
      end

      def fail?
        @subject.split.count < 2
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
danger-commit_lint-0.0.7 lib/commit_lint/subject_words_check.rb
danger-commit_lint-0.0.6 lib/commit_lint/subject_words_check.rb
danger-commit_lint-0.0.5 lib/commit_lint/subject_words_check.rb