Sha256: 26200894a1494746cd809cc0fe8fb15336b249734c72cfbe0b308e3fcad9e20b

Contents?: true

Size: 769 Bytes

Versions: 184

Compression:

Stored size: 769 Bytes

Contents

# frozen_string_literal: true

require 'avm/sources/configuration'

module Avm
  module EacRubyBase1
    class Rubocop
      module Configured
        def configured_rubocop_command_uncached
          configured_rubocop_command_by_command || configured_rubocop_command_by_gemfile
        end

        def configured_rubocop_command_by_command
          configuration.if_present(&:rubocop_command)
        end

        def configured_rubocop_command_by_gemfile
          configuration.if_present(&:rubocop_gemfile).if_present do |v|
            rubocop_command_by_gemfile_path(v.parent)
          end
        end

        private

        def configuration_uncached
          ::Avm::Sources::Configuration.find_by_path(base_path)
        end
      end
    end
  end
end

Version data entries

184 entries across 184 versions & 3 rubygems

Version Path
avm-eac_ruby_base1-0.30.3 lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.65.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.65.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.64.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.63.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.62.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.62.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.61.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.61.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
avm-eac_ruby_base1-0.30.2 lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.60.3 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.60.2 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.60.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.60.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.59.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
avm-eac_ruby_base1-0.30.1 lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.58.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.57.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.56.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb
eac_tools-0.56.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb