Skip to content

Commit

Permalink
[Docs] Use Cop::Base instead of Cop::Cop
Browse files Browse the repository at this point in the history
Follow up rubocop@f8813e76.
  • Loading branch information
koic committed Jul 27, 2023
1 parent 3f8582b commit dcbfddf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Base # rubocop:disable Metrics/ClassLength
# List of cops that should not try to autocorrect at the same
# time as this cop
#
# @return [Array<RuboCop::Cop::Cop>]
# @return [Array<RuboCop::Cop::Base>]
#
# @api public
def self.autocorrect_incompatible_with
Expand Down
4 changes: 2 additions & 2 deletions lib/rubocop/cop/layout/space_around_method_call_operator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Layout
# foo &. bar
# foo &. bar&. buzz
# RuboCop:: Cop
# RuboCop:: Cop:: Cop
# RuboCop:: Cop:: Base
# :: RuboCop::Cop
#
# # good
Expand All @@ -31,7 +31,7 @@ module Layout
# foo&.bar
# foo&.bar&.buzz
# RuboCop::Cop
# RuboCop::Cop::Cop
# RuboCop::Cop::Base
# ::RuboCop::Cop
#
class SpaceAroundMethodCallOperator < Base
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cop/registry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
stub_const('RuboCop::Cop::RSpec::Foo', Class.new(RuboCop::Cop::Cop))
end

# `RuboCop::Cop::Cop` mutates its `registry` when inherited from.
# `RuboCop::Cop::Base` mutates its `registry` when inherited from.
# This can introduce nondeterministic failures in other parts of the
# specs if this mutation occurs before code that depends on this global cop
# store. The workaround is to replace the global cop store with a temporary
Expand Down

0 comments on commit dcbfddf

Please sign in to comment.