FSharpLint
FSharpLint copied to clipboard
Lint for composing two functions is missing a bracket
The following code snippet:
[ 1 .. 5]
|> List.map ((+) 1)
|> List.map ((*) 2)
is linted to this:
List.map ((+) 1) >> ((*) 2)) [ 1 .. 5]
Note the missing opening bracket. In addition, I would have liked the use of the pipe to have stayed (although this is not critical).
Hi @isaacabraham , thanks for the report!
Can confirm that's unfortunately the current behavior, will look into what can be done about it
Noted, the formatting of suggestions is currently a work in progress, trying to keep existing formatting of piped functions was highest priority (will be after fixing the bug here 😸)