Sha256: ab445e34582056cb43e741ceb832f2c8fec12f175d0a4d9a1e1ebbc2f70e794e

Contents?: true

Size: 708 Bytes

Versions: 14

Compression:

Stored size: 708 Bytes

Contents

# frozen_string_literal: true

require 'avm/apps/sources/configuration'

module Avm
  module Ruby
    class Rubocop
      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::Apps::Sources::Configuration.find_by_path(base_path)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
avm-tools-0.106.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.105.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.104.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.103.1 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.103.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.102.2 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.102.1 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.102.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.101.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.100.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.99.1 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.99.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.98.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.97.0 lib/avm/ruby/rubocop/_configured.rb