Module: Avm::EacRubyBase1::Rubocop::Configured

Defined in:
lib/avm/eac_ruby_base1/rubocop/configured.rb

Instance Method Summary collapse

Instance Method Details

#configured_rubocop_command_by_commandObject



13
14
15
# File 'lib/avm/eac_ruby_base1/rubocop/configured.rb', line 13

def configured_rubocop_command_by_command
  configuration.if_present(&:rubocop_command)
end

#configured_rubocop_command_by_gemfileObject



17
18
19
20
21
# File 'lib/avm/eac_ruby_base1/rubocop/configured.rb', line 17

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

#configured_rubocop_command_uncachedObject



9
10
11
# File 'lib/avm/eac_ruby_base1/rubocop/configured.rb', line 9

def configured_rubocop_command_uncached
  configured_rubocop_command_by_command || configured_rubocop_command_by_gemfile
end