Sha256: b4ab68089062020870826f15bfa4e4fb4a8cc03afb8e8f155e8d729da34e5e7a

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

require_relative "jbuilder/version"
require "yaml"

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

3 entries across 3 versions & 1 rubygems

Version Path
rubocop-jbuilder-0.1.2 lib/rubocop/jbuilder.rb
rubocop-jbuilder-0.1.1 lib/rubocop/jbuilder.rb
rubocop-jbuilder-0.1.0 lib/rubocop/jbuilder.rb