Replies: 3 comments
-
opinion @BraisGabin
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestion! I converted this item, since it's more or less under discussion. I think we shouldn’t have such opinionated rule behavior. Furthermore, such special behavior creates more maintenance effort in the long run. |
Beta Was this translation helpful? Give feedback.
-
To ease the discussion: @DHosseiny could you add expected/actual snippets? |
Beta Was this translation helpful? Give feedback.
-
Expected Behavior of the rule
CascadingCallWrapping is a useful rule, thanks for writing this. But there is a case this is annoying. Example:
The
let
function is after a lambda so in this case, I think it is acceptable to not be in a new line. Generally speaking, let the chained call be in the same line with the previous function's lambda end if the previous function's lambda is not one-lined. At least add a Configuration option for this case.Context
This is useful to chain function at end of the previous function lambda because work can be done with fewer lines of code without losing readability.
Beta Was this translation helpful? Give feedback.
All reactions