Sha256: cecb9398dcce1a44b1e9c6f5d1127878ee6cd63be1b5c45f7b14c3cacdc9f51a

Contents?: true

Size: 512 Bytes

Versions: 7

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

require "rubocop/sorbet/version"
require "yaml"

module RuboCop
  module Sorbet
    class Error < StandardError; end

    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)

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubocop-sorbet-0.8.7 lib/rubocop/sorbet.rb
rubocop-sorbet-0.8.6 lib/rubocop/sorbet.rb
rubocop-sorbet-0.8.5 lib/rubocop/sorbet.rb
rubocop-sorbet-0.8.4 lib/rubocop/sorbet.rb
rubocop-sorbet-0.8.3 lib/rubocop/sorbet.rb
rubocop-sorbet-0.8.2 lib/rubocop/sorbet.rb
rubocop-sorbet-0.8.1 lib/rubocop/sorbet.rb