Sha256: 6464280d3d7c46bacbea74289f98b668e19bd22470ac7e476cdffbcd240e4ca3

Contents?: true

Size: 497 Bytes

Versions: 30

Compression:

Stored size: 497 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, permitted_classes: [Regexp, Symbol]).freeze

    private_constant(:CONFIG_DEFAULT, :PROJECT_ROOT)

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

Version data entries

30 entries across 29 versions & 6 rubygems

Version Path
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/rubocop-rails-2.19.1/lib/rubocop/rails.rb
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/rubocop-rails-2.20.2/lib/rubocop/rails.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-rails-2.20.0/lib/rubocop/rails.rb
rubocop-rails-2.20.2 lib/rubocop/rails.rb
rubocop-rails-2.20.1 lib/rubocop/rails.rb
rubocop-rails-2.20.0 lib/rubocop/rails.rb
fablicop-1.10.2 vendor/bundle/ruby/3.2.0/gems/rubocop-rails-2.19.1/lib/rubocop/rails.rb
rubocop-rails-2.19.1 lib/rubocop/rails.rb
rubocop-rails-2.19.0 lib/rubocop/rails.rb
rubocop-rails-2.18.0 lib/rubocop/rails.rb