Sha256: a2648b035d871e92565168d5979aefc55dc2cbc835e9693712eb369840b4fbfc

Contents?: true

Size: 711 Bytes

Versions: 234

Compression:

Stored size: 711 Bytes

Contents

# frozen_string_literal: true

module Avm
  module Sources
    class Configuration < ::EacConfig::OldConfigs
      module Rubocop
        RUBOCOP_COMMAND_KEY = 'ruby.rubocop.command'
        RUBOCOP_GEMFILE_KEY = 'ruby.rubocop.gemfile'

        def rubocop_command
          read_command(RUBOCOP_COMMAND_KEY)
        end

        def rubocop_gemfile
          gemfile_path = read_entry(RUBOCOP_GEMFILE_KEY)
          return nil if gemfile_path.blank?

          gemfile_path = gemfile_path.to_pathname.expand_path(storage_path.parent)
          return gemfile_path if gemfile_path.file?

          raise "Gemfile path \"#{gemfile_path}\" does not exist or is not a file"
        end
      end
    end
  end
end

Version data entries

234 entries across 234 versions & 3 rubygems

Version Path
avm-0.58.0 lib/avm/sources/configuration/rubocop.rb
eac_tools-0.49.0 sub/avm/lib/avm/sources/configuration/rubocop.rb
eac_tools-0.48.1 sub/avm/lib/avm/sources/configuration/rubocop.rb
eac_tools-0.48.0 sub/avm/lib/avm/sources/configuration/rubocop.rb
eac_tools-0.47.2 sub/avm/lib/avm/sources/configuration/rubocop.rb
eac_tools-0.47.1 sub/avm/lib/avm/sources/configuration/rubocop.rb
eac_tools-0.47.0 sub/avm/lib/avm/sources/configuration/rubocop.rb
avm-0.57.0 lib/avm/sources/configuration/rubocop.rb
eac_tools-0.46.0 sub/avm/lib/avm/sources/configuration/rubocop.rb
avm-0.56.1 lib/avm/sources/configuration/rubocop.rb
eac_tools-0.45.2 sub/avm/lib/avm/sources/configuration/rubocop.rb
eac_tools-0.45.1 sub/avm/lib/avm/sources/configuration/rubocop.rb
avm-0.56.0 lib/avm/sources/configuration/rubocop.rb
eac_tools-0.45.0 sub/avm/lib/avm/sources/configuration/rubocop.rb
eac_tools-0.44.0 sub/avm/lib/avm/sources/configuration/rubocop.rb
eac_tools-0.43.0 sub/avm/lib/avm/sources/configuration/rubocop.rb
avm-0.55.0 lib/avm/sources/configuration/rubocop.rb
eac_tools-0.42.0 sub/avm/lib/avm/sources/configuration/rubocop.rb
eac_tools-0.41.0 sub/avm/lib/avm/sources/configuration/rubocop.rb
avm-0.54.0 lib/avm/sources/configuration/rubocop.rb