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



11
12
13
# File 'lib/avm/eac_ruby_base1/rubocop/configured.rb', line 11

def configured_rubocop_command_by_command
  configuration.if_present(&:rubocop_command)
end

#configured_rubocop_command_by_gemfileObject



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

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



7
8
9
# File 'lib/avm/eac_ruby_base1/rubocop/configured.rb', line 7

def configured_rubocop_command_uncached
  configured_rubocop_command_by_command || configured_rubocop_command_by_gemfile
end