Sha256: 6fd926061afd304c1fd641372726ef1f20e0632325a3ef3f6c772f2ad349655e

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  # RuboCop::ThreadSafety detects some potential thread safety issues.
  module ThreadSafety
    PROJECT_ROOT = Pathname.new(File.expand_path('../../', __dir__))
    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

1 entries across 1 versions & 1 rubygems

Version Path
rubocop-thread_safety-0.6.0 lib/rubocop/thread_safety.rb