Sha256: ab02e8619d9ae301e279560fb77914abd6e562adc7bc11f0f1cd2d96593e7a89
Contents?: true
Size: 576 Bytes
Versions: 5
Compression:
Stored size: 576 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}\Z/) end def issue = valid? ? {} : {hint: %(Use: #{filter_list.to_usage "or"}.)} protected def load_filter_list Kit::FilterList.new configuration.commits_signature_includes end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems