Sha256: be50f681cd359990fec6b415fd1c0f4146cd95bc6fc8890657d1d613bcf9dd51
Contents?: true
Size: 686 Bytes
Versions: 8
Compression:
Stored size: 686 Bytes
Contents
# frozen_string_literal: true module Git module Lint module CLI module Actions # Handles unsaved Git commit action. class Hook include Git::Lint::Import[:repository, :kernel, :logger] def initialize analyzer: Analyzer.new, **dependencies super(**dependencies) @analyzer = analyzer end def call path analyzer.call commits: [repository.unsaved(path)] do |collector, reporter| kernel.puts reporter kernel.abort if collector.errors? end end private attr_reader :analyzer end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems