Sha256: b3919c436096d53825f80baff0793998e1330b85555175498e44c0da3afb39ed
Contents?: true
Size: 471 Bytes
Versions: 14
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Analyzers # Analyzes commit subject for repeated words. class CommitSubjectWordRepeat < Abstract include Import[validator: "validators.repeated_word"] def valid? = validator.call(commit.subject).empty? def issue return {} if valid? {hint: "Avoid repeating these words: #{validator.call commit.subject}."} end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems