diff --git a/lib/rubocop/cop/base.rb b/lib/rubocop/cop/base.rb index 0c1afbd6e6dc..39cea5913e4e 100644 --- a/lib/rubocop/cop/base.rb +++ b/lib/rubocop/cop/base.rb @@ -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] + # @return [Array] # # @api public def self.autocorrect_incompatible_with diff --git a/lib/rubocop/cop/layout/space_around_method_call_operator.rb b/lib/rubocop/cop/layout/space_around_method_call_operator.rb index 319242c78de1..03c088d17403 100644 --- a/lib/rubocop/cop/layout/space_around_method_call_operator.rb +++ b/lib/rubocop/cop/layout/space_around_method_call_operator.rb @@ -19,7 +19,7 @@ module Layout # foo &. bar # foo &. bar&. buzz # RuboCop:: Cop - # RuboCop:: Cop:: Cop + # RuboCop:: Cop:: Base # :: RuboCop::Cop # # # good @@ -31,7 +31,7 @@ module Layout # foo&.bar # foo&.bar&.buzz # RuboCop::Cop - # RuboCop::Cop::Cop + # RuboCop::Cop::Base # ::RuboCop::Cop # class SpaceAroundMethodCallOperator < Base diff --git a/spec/rubocop/cop/registry_spec.rb b/spec/rubocop/cop/registry_spec.rb index abc288efa951..4b6bc1edc58f 100644 --- a/spec/rubocop/cop/registry_spec.rb +++ b/spec/rubocop/cop/registry_spec.rb @@ -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