Sha256: 95346c0f1d1af83ca50037785be085abe8242a0a93e51c4e3465c986884ca4e4
Contents?: true
Size: 538 Bytes
Versions: 6
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Analyzers # Analyzes commit signature validity. class CommitSignature < Abstract include Import[sanitizer: "sanitizers.signature"] def valid? sanitizer.call(commit.signature).match?(/\A#{Regexp.union filter_list.to_regexp}\Z/) end def issue = valid? ? {} : {hint: %(Use: #{filter_list.to_hint}.)} protected def load_filter_list = Kit::FilterList.new(settings.includes) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems