Sha256: 9d6421c55e84c5fa077e1fd5de0ab9bdabfa67ce291065d00ffb3940245689da

Contents?: true

Size: 511 Bytes

Versions: 39

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

module Reek
  module CLI
    module Command
      #
      # Base class for all commands
      #
      class BaseCommand
        def initialize(options:, sources:, configuration:)
          @options = options
          @sources = sources
          @configuration = configuration
        end

        private

        attr_reader :options, :sources, :configuration

        def smell_names
          @smell_names ||= options.smells_to_detect
        end
      end
    end
  end
end

Version data entries

39 entries across 37 versions & 2 rubygems

Version Path
reek-5.3.1 lib/reek/cli/command/base_command.rb
reek-5.3.0 lib/reek/cli/command/base_command.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/cli/command/base_command.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/cli/command/base_command.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/cli/command/base_command.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/lib/reek/cli/command/base_command.rb
reek-5.2.0 lib/reek/cli/command/base_command.rb
reek-5.1.0 lib/reek/cli/command/base_command.rb
reek-5.0.2 lib/reek/cli/command/base_command.rb
reek-5.0.1 lib/reek/cli/command/base_command.rb
reek-5.0.0 lib/reek/cli/command/base_command.rb
reek-4.8.2 lib/reek/cli/command/base_command.rb
reek-4.8.1 lib/reek/cli/command/base_command.rb
reek-4.8.0 lib/reek/cli/command/base_command.rb
reek-4.7.3 lib/reek/cli/command/base_command.rb
reek-4.7.2 lib/reek/cli/command/base_command.rb
reek-4.7.1 lib/reek/cli/command/base_command.rb
reek-4.7.0 lib/reek/cli/command/base_command.rb
reek-4.6.2 lib/reek/cli/command/base_command.rb