fsprojects / fsprojects/FSharpLint

Lint for composing two functions is missing a bracket

Open
#198 1 comment 0 reactions 1 assignee View on GitHub

@duckmatt is already working on this.

Since Jan 3, 2017.

bug
Dominant language
F#
Stars
327
Forks
74
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.