Sha256: ff226063c7bcc45091dc048e0c332a0e540d51fa83dce26e3ba68c26899e8a5e

Contents?: true

Size: 1.34 KB

Versions: 9

Compression:

Stored size: 1.34 KB

Contents

# frozen_string_literal: true

require 'pathname'
require 'yaml'

require 'rubocop'

require_relative 'rubocop/rspec'
require_relative 'rubocop/rspec/version'
require_relative 'rubocop/rspec/inject'
require_relative 'rubocop/rspec/node'
require_relative 'rubocop/rspec/top_level_describe'
require_relative 'rubocop/rspec/wording'
require_relative 'rubocop/rspec/util'
require_relative 'rubocop/rspec/language'
require_relative 'rubocop/rspec/language/node_pattern'
require_relative 'rubocop/rspec/concept'
require_relative 'rubocop/rspec/example_group'
require_relative 'rubocop/rspec/example'
require_relative 'rubocop/rspec/hook'
require_relative 'rubocop/cop/rspec/cop'
require_relative 'rubocop/rspec/align_let_brace'
require_relative 'rubocop/rspec/factory_bot'
require_relative 'rubocop/rspec/final_end_location'
require_relative 'rubocop/rspec/blank_line_separation'

RuboCop::RSpec::Inject.defaults!

require_relative 'rubocop/cop/rspec_cops'

# We have to register our autocorrect incompatibilies in RuboCop's cops as well
# so we do not hit infinite loops

module RuboCop
  module Cop
    module Layout
      class ExtraSpacing # rubocop:disable Style/Documentation
        def self.autocorrect_incompatible_with
          [RSpec::AlignLeftLetBrace, RSpec::AlignRightLetBrace]
        end
      end
    end
  end
end

RuboCop::AST::Node.include(RuboCop::RSpec::Node)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubocop-rspec-1.38.1 lib/rubocop-rspec.rb
rubocop-rspec-1.38.0 lib/rubocop-rspec.rb
rubocop-rspec-1.37.1 lib/rubocop-rspec.rb
rubocop-rspec-1.37.0 lib/rubocop-rspec.rb
rubocop-rspec-1.36.0 lib/rubocop-rspec.rb
rubocop-rspec-1.35.0 lib/rubocop-rspec.rb
rubocop-rspec-1.34.1 lib/rubocop-rspec.rb
rubocop-rspec-1.34.0 lib/rubocop-rspec.rb
rubocop-rspec-1.33.0 lib/rubocop-rspec.rb