Sha256: 2785e6965c151ae78cae9982bd266ccc77c83bfe3f08c77224b8996bdb7ddddf

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

require_relative "platanus/version"

module RuboCop
  module Platanus
    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

2 entries across 2 versions & 1 rubygems

Version Path
rubocop-platanus-0.2.0 lib/rubocop/platanus.rb
rubocop-platanus-0.1.0 lib/rubocop/platanus.rb