lib/git/lint/cli/actions/analyze/branch.rb in git-lint-3.3.2 vs lib/git/lint/cli/actions/analyze/branch.rb in git-lint-4.0.0

- old
+ new

@@ -5,13 +5,15 @@ module CLI module Actions module Analyze # Handles analyze action for branch. class Branch - def initialize analyzer: Analyzer.new, container: Container + include Git::Lint::Import[:repository, :kernel, :logger] + + def initialize analyzer: Analyzer.new, **dependencies + super(**dependencies) @analyzer = analyzer - @container = container end def call parse rescue Errors::Base => error @@ -19,23 +21,17 @@ kernel.abort end private - attr_reader :analyzer, :container + attr_reader :analyzer def parse analyzer.call do |collector, reporter| kernel.puts reporter kernel.abort if collector.errors? end end - - def repository = container[__method__] - - def kernel = container[__method__] - - def logger = container[__method__] end end end end end