Sha256: a87b2ac0fcd24f62649d770d37134a4e9d234ce2f5ca304523466260c2353aab
Contents?: true
Size: 598 Bytes
Versions: 5
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Analyzers # Analyzes commit subject suffix for punctuation. class CommitSubjectSuffix < Abstract def valid? return true if filter_list.empty? !commit.subject.match?(/#{Regexp.union filter_list}\Z/) end def issue return {} if valid? {hint: %(Avoid: #{filter_list.to_usage}.)} end protected def load_filter_list Kit::FilterList.new configuration.commits_subject_suffix_excludes end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems