-
-
Notifications
You must be signed in to change notification settings - Fork 767
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
Dont check WrongEqualsTypeParameter if the function is topLevel #2027
Dont check WrongEqualsTypeParameter if the function is topLevel #2027
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2027 +/- ##
=========================================
Coverage 80.68% 80.68%
- Complexity 1985 1986 +1
=========================================
Files 329 329
Lines 5591 5591
Branches 1021 1021
=========================================
Hits 4511 4511
Misses 539 539
Partials 541 541
Continue to review full report at Codecov.
|
I think this rule should instead be changed to instead only I don't think a top-level |
I think that maybe can be reformuled to: "any non-top-level function called |
What I meant was, the rule would check for a function named "equals" that is an override. If those conditions are true, then the rule would check that the return type is as expected. If the |
Yes, it should. Think on this code:
The first |
Thanks for your patience and contribution! |
You can have a function named
equals
as a top level function. It's strange but safe.