Sha256: 8f566c696b352facd6b4d89428d293e28aae49cef61b851995e0081962fde31d

Contents?: true

Size: 461 Bytes

Versions: 6

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

require 'rubocop/codeur/version'
require 'yaml'

module RuboCop
  # RuboCop Codeur project namespace
  module Codeur
    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

6 entries across 6 versions & 1 rubygems

Version Path
rubocop-codeur-0.9.8 lib/rubocop/codeur.rb
rubocop-codeur-0.9.5 lib/rubocop/codeur.rb
rubocop-codeur-0.9.4 lib/rubocop/codeur.rb
rubocop-codeur-0.9.3 lib/rubocop/codeur.rb
rubocop-codeur-0.9.2 lib/rubocop/codeur.rb
rubocop-codeur-0.9.1 lib/rubocop/codeur.rb