Sha256: f312d9bc235ee7f9fef27096dce4d2a2e29a5db21421a89f62ae85a6a017d300

Contents?: true

Size: 372 Bytes

Versions: 21

Compression:

Stored size: 372 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)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rubocop-rails-2.9.1 lib/rubocop/rails.rb
rubocop-rails-2.9.0 lib/rubocop/rails.rb
rubocop-rails-2.8.1 lib/rubocop/rails.rb
rubocop-rails-2.8.0 lib/rubocop/rails.rb
rubocop-rails-2.7.1 lib/rubocop/rails.rb
rubocop-rails-2.7.0 lib/rubocop/rails.rb
rubocop-rails-2.6.0 lib/rubocop/rails.rb
rubocop-rails-2.5.2 lib/rubocop/rails.rb
rubocop-rails-2.5.1 lib/rubocop/rails.rb
rubocop-rails-2.5.0 lib/rubocop/rails.rb
rubocop-rails-2.4.2 lib/rubocop/rails.rb
rubocop-rails-2.4.1 lib/rubocop/rails.rb
rubocop-rails-2.4.0 lib/rubocop/rails.rb
rubocop-rails-2.3.2 lib/rubocop/rails.rb
rubocop-rails-2.3.1 lib/rubocop/rails.rb
rubocop-rails-2.3.0 lib/rubocop/rails.rb
rubocop-rails-2.2.1 lib/rubocop/rails.rb
rubocop-rails-2.2.0 lib/rubocop/rails.rb
rubocop-rails-2.1.0 lib/rubocop/rails.rb
rubocop-rails-2.0.1 lib/rubocop/rails.rb