Sha256: d43f8a93fd1cf26d7cca09f2d3f9a45eb79d0fa891a47adebc8c51c241db0db4

Contents?: true

Size: 399 Bytes

Versions: 6

Compression:

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubocop-thread_safety-0.5.1 lib/rubocop/thread_safety.rb
rubocop-thread_safety-0.5.0 lib/rubocop/thread_safety.rb
rubocop-thread_safety-0.4.4 lib/rubocop/thread_safety.rb
rubocop-thread_safety-0.4.3 lib/rubocop/thread_safety.rb
rubocop-thread_safety-0.4.2 lib/rubocop/thread_safety.rb
rubocop-thread_safety-0.4.1 lib/rubocop/thread_safety.rb