Sha256: 7fb15c69f798f08fa168423080b303fa6bacfc03bd088f5484190cd09fb8f694

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 Bytes

Contents

require "rubocop/ipepe/version"

module RuboCop
  module Ipepe
    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-ipepe-0.2.5 lib/rubocop/ipepe.rb
rubocop-ipepe-0.2.0 lib/rubocop/ipepe.rb