-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Limit SafeNavigation #5606
Limit SafeNavigation #5606
Conversation
e71d6c1
to
c103cfe
Compare
@@ -41,6 +41,8 @@ module Style | |||
# foo&.bar(param1, param2) | |||
# foo&.bar { |e| e.something } | |||
# foo&.bar(param) { |e| e.something } | |||
# foo && foo.bar.baz.qux # method chain with more than 2 methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you should mention this in free text in the cop description as well.
c103cfe
to
f733409
Compare
@bbatsov one more thought that I had for |
Yeah, this makes sense. |
f733409
to
5da84c3
Compare
Updated with new highlighting. The |
This addresses the changes mentioned in #5595. I will start working on a separate cop to handle consistent usage of safe navigation on all sides of
&&
and||
.