Sha256: 832fa3ceec657b7928a4cb7c6b6d8a41425478bd141521cb7f7e8e145eb74894

Contents?: true

Size: 397 Bytes

Versions: 7

Compression:

Stored size: 397 Bytes

Contents

module Danger
  class DangerCommitLint < Plugin
    class SubjectPeriodCheck < CommitCheck # :nodoc:
      MESSAGE = 'Please remove period from end of commit subject line.'.freeze

      def self.type
        :subject_period
      end

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

      def fail?
        @subject.split('').last == '.'
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
danger-commit_lint-0.0.7 lib/commit_lint/subject_period_check.rb
danger-commit_lint-0.0.6 lib/commit_lint/subject_period_check.rb
danger-commit_lint-0.0.5 lib/commit_lint/subject_period_check.rb
danger-commit_lint-0.0.4 lib/commit_lint/subject_period_check.rb
danger-commit_lint-0.0.3 lib/commit_lint/subject_period_check.rb
danger-commit_lint-0.0.2 lib/commit_lint/subject_period_check.rb
danger-commit_lint-0.0.1 lib/commit_lint/subject_period_check.rb