Sha256: 5f7bcecf00c9e0ff0156411bfd0bb1d4df7c163c3d6e7a887c9f5fa1fa2c9748

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Modularization
    class Error < StandardError; end
    # Your code goes here...
    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

1 entries across 1 versions & 1 rubygems

Version Path
rubocop-modularization-0.0.1 lib/rubocop/modularization.rb