Sha256: 2ffccac1a03667e54d7f41b80ecf53454f2218cc17e58732f6e9706fcaeea193
Contents?: true
Size: 708 Bytes
Versions: 17
Compression:
Stored size: 708 Bytes
Contents
# frozen_string_literal: true module Avm module Apps module Sources class Configuration < ::EacConfig::OldConfigs 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
17 entries across 17 versions & 3 rubygems