Sha256: 200feb49231f50bc4d6fbf879f9600534845f15029146d42db38c31c0240982d

Contents?: true

Size: 460 Bytes

Versions: 34

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  # RuboCop Rails project namespace
  module Rails
    PROJECT_ROOT   = Pathname.new(__dir__).parent.parent.expand_path.freeze
    CONFIG_DEFAULT = PROJECT_ROOT.join('config', 'default.yml').freeze
    CONFIG         = YAML.safe_load(CONFIG_DEFAULT.read).freeze

    private_constant(:CONFIG_DEFAULT, :PROJECT_ROOT)

    ::RuboCop::ConfigObsoletion.files << PROJECT_ROOT.join('config', 'obsoletion.yml')
  end
end

Version data entries

34 entries across 32 versions & 3 rubygems

Version Path
rubocop-rails-2.13.2 lib/rubocop/rails.rb
rubocop-rails-2.13.1 lib/rubocop/rails.rb
rubocop-rails-2.13.0 lib/rubocop/rails.rb
rubocop-rails-2.12.4 lib/rubocop/rails.rb
rubocop-rails-2.12.3 lib/rubocop/rails.rb
rubocop-rails-2.12.2 lib/rubocop/rails.rb
rubocop-rails-2.12.1 lib/rubocop/rails.rb
rubocop-rails-2.12.0 lib/rubocop/rails.rb
rubocop-rails-2.11.3 lib/rubocop/rails.rb
rubocop-rails-2.11.2 lib/rubocop/rails.rb
rubocop-rails-2.11.1 lib/rubocop/rails.rb
rubocop-rails-2.11.0 lib/rubocop/rails.rb
rubocop-rails-2.10.1 lib/rubocop/rails.rb
rubocop-rails-2.10.0 lib/rubocop/rails.rb