Sha256: 82480d26a2741e6faa1c71e10370850ea4ed4c665e37c31424207dbffeaa50a1

Contents?: true

Size: 423 Bytes

Versions: 10

Compression:

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubocop-sorbet-0.7.0 lib/rubocop/sorbet.rb
rubocop-sorbet-0.6.11 lib/rubocop/sorbet.rb
rubocop-sorbet-0.6.10 lib/rubocop/sorbet.rb
rubocop-sorbet-0.6.9 lib/rubocop/sorbet.rb
rubocop-sorbet-0.6.8 lib/rubocop/sorbet.rb
rubocop-sorbet-0.6.7 lib/rubocop/sorbet.rb
rubocop-sorbet-0.6.6 lib/rubocop/sorbet.rb
rubocop-sorbet-0.6.5 lib/rubocop/sorbet.rb
rubocop-sorbet-0.6.4 lib/rubocop/sorbet.rb
rubocop-sorbet-0.6.3 lib/rubocop/sorbet.rb