Sha256: 4e494521d2d425dde2211c31f30d946e0f8ba8fd4eadc83d0752b1c8ae0b1ca1

Contents?: true

Size: 698 Bytes

Versions: 2

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true

require "rubocop-rspec"

require_relative "rubocop/rspec/extra/inject"
require_relative "rubocop/rspec/extra/version"

require_relative "rubocop/cop/rspec/extra/be_empty"
require_relative "rubocop/cop/rspec/extra/restrict_block_tag"
require_relative "rubocop/cop/rspec/extra/restrict_block_tag_value"

module RuboCop
  module RSpec
    module Extra
      PROJECT_ROOT = ::Pathname.new(__dir__).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
end

RuboCop::RSpec::Extra::Inject.defaults!

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubocop-rspec-extra-0.2.0 lib/rubocop-rspec-extra.rb
rubocop-rspec-extra-0.1.0 lib/rubocop-rspec-extra.rb