-
Notifications
You must be signed in to change notification settings - Fork 72
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
Rule to recommend not to use the pipe operator if it's only used once #595
Rule to recommend not to use the pipe operator if it's only used once #595
Conversation
I've realised that this is going too far and the rule is going to raise too many warnings. Let's have this new test:
And the rule should not give errors for the above, even if the pipe operator is only used once. Why? Because the alternative would be BTW let's rename the rule to AvoidOnePipeOperator, to make it crystal clear that multiple pipes are fine. |
5ae0654
to
20f0bcd
Compare
Added the test and fixed the rule to pass it. But, the name of the rule is already AvoidOnePipeOperator |
Sorry, I meant |
Why is CI red? |
7b7a2ad
to
f481812
Compare
Fixes #594