-
-
Notifications
You must be signed in to change notification settings - Fork 282
Closed
Labels
Description
Related issue: #1061
I've experienced the problem described in #1061 (where the implementation changes and there is a dangling stub) but I fail to see the point of the default (currently only) configuration of this cop.
It seems quite opinionated and should provide some example of a problem which it prevents.
Kind of like these cops do:
- https://docs.rubocop.org/rubocop/1.27/cops_lint.html#lintconstantdefinitioninblock
- https://docs.rubocop.org/rubocop/1.27/cops_lint.html#linteachwithobjectargument
Some cops also link to the ruby style guide, which in turn provides the rationale, but I don't see how this cop corresponds to anything in the style guide.
Many cops are self-explanatory and there may not be any rationale for them other than consistency, but I don't think that applies to this one.