Sha256: 14fd6b213e266aedae98a3a41426bffe448f19ea202df57b47ad2372f3619af0

Contents?: true

Size: 701 Bytes

Versions: 75

Compression:

Stored size: 701 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
avm-tools-0.96.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.95.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.94.3 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.94.2 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.94.1 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.94.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.93.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.92.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.91.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.90.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.89.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.88.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.87.1 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.87.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.86.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.85.1 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.85.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.84.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.83.0 lib/avm/ruby/rubocop/_configured.rb
avm-tools-0.82.1 lib/avm/ruby/rubocop/_configured.rb