lib/rubocop-rspec.rb in rubocop-rspec-1.21.0 vs lib/rubocop-rspec.rb in rubocop-rspec-1.22.0
- old
+ new
@@ -1,84 +1,29 @@
require 'pathname'
require 'yaml'
require 'rubocop'
-require 'rubocop/rspec'
-require 'rubocop/rspec/version'
-require 'rubocop/rspec/inject'
-require 'rubocop/rspec/top_level_describe'
-require 'rubocop/rspec/wording'
-require 'rubocop/rspec/util'
-require 'rubocop/rspec/language'
-require 'rubocop/rspec/language/node_pattern'
-require 'rubocop/rspec/concept'
-require 'rubocop/rspec/example_group'
-require 'rubocop/rspec/example'
-require 'rubocop/rspec/hook'
-require 'rubocop/cop/rspec/cop'
-require 'rubocop/rspec/align_let_brace'
-require 'rubocop/rspec/capybara'
-require 'rubocop/rspec/factory_bot'
+require_relative 'rubocop/rspec'
+require_relative 'rubocop/rspec/version'
+require_relative 'rubocop/rspec/inject'
+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/capybara'
+require_relative 'rubocop/rspec/factory_bot'
RuboCop::RSpec::Inject.defaults!
-# cops
-require 'rubocop/cop/rspec/align_left_let_brace'
-require 'rubocop/cop/rspec/align_right_let_brace'
-require 'rubocop/cop/rspec/any_instance'
-require 'rubocop/cop/rspec/around_block'
-require 'rubocop/cop/rspec/be_eql'
-require 'rubocop/cop/rspec/before_after_all'
-require 'rubocop/cop/rspec/capybara/current_path_expectation'
-require 'rubocop/cop/rspec/capybara/feature_methods'
-require 'rubocop/cop/rspec/context_wording'
-require 'rubocop/cop/rspec/describe_class'
-require 'rubocop/cop/rspec/describe_method'
-require 'rubocop/cop/rspec/describe_symbol'
-require 'rubocop/cop/rspec/described_class'
-require 'rubocop/cop/rspec/empty_example_group'
-require 'rubocop/cop/rspec/empty_line_after_final_let'
-require 'rubocop/cop/rspec/empty_line_after_subject'
-require 'rubocop/cop/rspec/example_length'
-require 'rubocop/cop/rspec/example_wording'
-require 'rubocop/cop/rspec/expect_actual'
-require 'rubocop/cop/rspec/expect_in_hook'
-require 'rubocop/cop/rspec/expect_output'
-require 'rubocop/cop/rspec/factory_bot/dynamic_attribute_defined_statically'
-require 'rubocop/cop/rspec/file_path'
-require 'rubocop/cop/rspec/focus'
-require 'rubocop/cop/rspec/hook_argument'
-require 'rubocop/cop/rspec/implicit_expect'
-require 'rubocop/cop/rspec/instance_spy'
-require 'rubocop/cop/rspec/instance_variable'
-require 'rubocop/cop/rspec/invalid_predicate_matcher'
-require 'rubocop/cop/rspec/it_behaves_like'
-require 'rubocop/cop/rspec/iterated_expectation'
-require 'rubocop/cop/rspec/leading_subject'
-require 'rubocop/cop/rspec/let_before_examples'
-require 'rubocop/cop/rspec/let_setup'
-require 'rubocop/cop/rspec/message_chain'
-require 'rubocop/cop/rspec/message_expectation'
-require 'rubocop/cop/rspec/message_spies'
-require 'rubocop/cop/rspec/multiple_describes'
-require 'rubocop/cop/rspec/multiple_expectations'
-require 'rubocop/cop/rspec/multiple_subjects'
-require 'rubocop/cop/rspec/named_subject'
-require 'rubocop/cop/rspec/nested_groups'
-require 'rubocop/cop/rspec/not_to_not'
-require 'rubocop/cop/rspec/overwriting_setup'
-require 'rubocop/cop/rspec/repeated_description'
-require 'rubocop/cop/rspec/repeated_example'
-require 'rubocop/cop/rspec/return_from_stub'
-require 'rubocop/cop/rspec/scattered_let'
-require 'rubocop/cop/rspec/scattered_setup'
-require 'rubocop/cop/rspec/shared_context'
-require 'rubocop/cop/rspec/single_argument_message_chain'
-require 'rubocop/cop/rspec/subject_stub'
-require 'rubocop/cop/rspec/predicate_matcher'
-require 'rubocop/cop/rspec/verified_doubles'
-require 'rubocop/cop/rspec/void_expect'
+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