Sha256: cff47e05e12a05669517d0675cfb962594d517b80d3d038da0b261a8ae71595c
Contents?: true
Size: 509 Bytes
Versions: 27
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Analyzers # Analyzes commit trailer duplicate. class CommitTrailerDuplicate < Abstract def valid? = affected_commit_trailers.empty? def issue return {} if valid? { hint: "Avoid duplicates.", lines: affected_commit_trailers } end protected def invalid_line?(trailer) = commit.trailers.tally[trailer] != 1 end end end end
Version data entries
27 entries across 27 versions & 1 rubygems