-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InverseMethods false positive for Module#<,>,>=,<= #5619
Comments
|
I keep learning new things about Ruby after all those years - I was always using the |
Matz:
Also Matz:
😅 |
rrosenblum
added a commit
to rrosenblum/rubocop
that referenced
this issue
Mar 12, 2018
…s when determining class hierarchy
This was referenced Mar 21, 2018
This was referenced Mar 21, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I've just faced an offence with code:
!(klass < BaseClass)
which checks that class from variable is not a subclass of BaseClass. Here is the message:I've checked issues but have not found related. I think there is no way to make this cop handle correctly Number#< and Module#<. WDYT?
PS. in this particular case it was ok for me to switch to
<=>
, because it's guaranteed thatklass
can not be superclass of BaseClass.The text was updated successfully, but these errors were encountered: