fsprojects / fsprojects/FSharpLint
Lint for composing two functions is missing a bracket
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.