-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fix AvoidSinglePipeOperator false negative in all inner expressions #697
Fix AvoidSinglePipeOperator false negative in all inner expressions #697
Conversation
@webwarrior-ws please review |
src/FSharpLint.Core/Rules/Conventions/AvoidSinglePipeOperator.fs
Outdated
Show resolved
Hide resolved
src/FSharpLint.Core/Rules/Conventions/AvoidSinglePipeOperator.fs
Outdated
Show resolved
Hide resolved
src/FSharpLint.Core/Rules/Conventions/AvoidSinglePipeOperator.fs
Outdated
Show resolved
Hide resolved
src/FSharpLint.Core/Rules/Conventions/AvoidSinglePipeOperator.fs
Outdated
Show resolved
Hide resolved
src/FSharpLint.Core/Rules/Conventions/AvoidSinglePipeOperator.fs
Outdated
Show resolved
Hide resolved
src/FSharpLint.Core/Rules/Conventions/AvoidSinglePipeOperator.fs
Outdated
Show resolved
Hide resolved
6f09eda
to
b83de98
Compare
@webwarrior-ws all good now? |
f995950
to
a392d8c
Compare
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.
Overall the code ended up being not easy to understand, but at least it looks like it works. Though I'd add a test case with 3 pipe operators, just to make sure.
src/FSharpLint.Core/Rules/Conventions/AvoidSinglePipeOperator.fs
Outdated
Show resolved
Hide resolved
src/FSharpLint.Core/Rules/Conventions/AvoidSinglePipeOperator.fs
Outdated
Show resolved
Hide resolved
Switched to using `Seq.isEmpty` instead of comparing array length.
a392d8c
to
ee54702
Compare
This test was incorporated following the suggestion of @webwarrior-ws to include a test case that utilizes three pipe operators [1]. [1] fsprojects#697 (review)
ad62f26
to
8a93684
Compare
@Mersho please re-run CI build of the commit titled "AvoidSinglePipeOperator: fix for all inner exprs" |
Done. |
No description provided.