FSharpLint icon indicating copy to clipboard operation
FSharpLint copied to clipboard

Lint for composing two functions is missing a bracket

Open isaacabraham opened this issue 8 years ago • 1 comments

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).

isaacabraham avatar Jan 02 '17 17:01 isaacabraham

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 😸)

duckmatt avatar Jan 03 '17 02:01 duckmatt