NoLeftOverPizza #88
Replies: 6 comments
-
I would like to see this for left pizza. |
Beta Was this translation helpful? Give feedback.
-
@lydell |
Beta Was this translation helpful? Give feedback.
-
Thanks! Given the name – no left pizza – I didn’t expect finding that there. But I guess it makes sense now. |
Beta Was this translation helpful? Give feedback.
-
It wasn't there in the first iteration ;) Back on the subject, I agree with this rule, this is a small pet peeve of mine and I often refactor things to remove this way manually. |
Beta Was this translation helpful? Give feedback.
-
Note that this should be easier to fix nowadays thanks to |
Beta Was this translation helpful? Give feedback.
-
I think this can be marked as implemented in SiriusStarr/elm-review-pipeline-styles. |
Beta Was this translation helpful? Give feedback.
-
What the rule should do:
Forbid simple uses of right pizza (
|>
) that would not add any parens if removed.What problems does it solve:
Pizza can make the place look untidy.
Example of things the rule would report:
context |> rememberElmJsonProject project
Example of things the rule would not report:
getContext model |> rememberElmJsonProject project
When (not) to enable this rule:
If you really like pizza then this rule might not be for you. Right pizza are often used to show a pipeline, but right pizza may also be used to change the focus of an expression - this rule may complain about such expressions.
I am looking for:
Beta Was this translation helpful? Give feedback.
All reactions