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
rubocop-rails-2.27.0 lib/rubocop/rails.rb
rubocop-rails-2.26.2 lib/rubocop/rails.rb
rubocop-rails-2.26.1 lib/rubocop/rails.rb
rubocop-rails-2.26.0 lib/rubocop/rails.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rubocop-rails-2.25.1/lib/rubocop/rails.rb
rubocop-rails-2.25.1 lib/rubocop/rails.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rubocop-rails-2.25.0/lib/rubocop/rails.rb
rubocop-rails-2.24.1 lib/rubocop/rails.rb
rubocop-rails-2.24.0 lib/rubocop/rails.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/rubocop-rails-2.23.1/lib/rubocop/rails.rb
rubocop-rails-2.23.1 lib/rubocop/rails.rb
rubocop-rails-2.23.0 lib/rubocop/rails.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rubocop-rails-2.20.0/lib/rubocop/rails.rb
rubocop-rails-2.22.2 lib/rubocop/rails.rb
rubocop-rails-2.22.1 lib/rubocop/rails.rb
rubocop-rails-2.22.0 lib/rubocop/rails.rb
rubocop-rails-2.21.2 lib/rubocop/rails.rb
rubocop-rails-2.21.1 lib/rubocop/rails.rb
rubocop-rails-2.21.0 lib/rubocop/rails.rb
mlh-rubocop-config-1.0.2 vendor/bundle/ruby/3.2.0/gems/rubocop-rails-2.20.2/lib/rubocop/rails.rb