Sha256: 9bac3b8315e1eb1d5bec288777a9b13dccab18444cee507fa1b4c58132d39a02

Contents?: true

Size: 697 Bytes

Versions: 19

Compression:

Stored size: 697 Bytes

Contents

# frozen_string_literal: true

require 'avm/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::Sources::Configuration.find_by_path(base_path)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
avm-tools-0.116.1 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.116.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.115.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.114.2 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.114.1 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.114.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.113.6 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.113.5 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.113.4 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.113.3 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.113.2 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.113.1 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.113.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.112.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.111.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.110.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.109.1 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.109.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.108.0 lib/avm/ruby/rubocop/_configured.rb