Should not suggest composition over lambdas like `fun x -> -sin x`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- fsharp
- Domain
- tooling
Research direction
Start by reproducing the issue with the sampleEnergy lambda shown in the report and trace which lint rule recommends composition. The issue names no source file, entry point, or test, so locate the relevant rule and its existing tests first. Done means the lambda is no longer flagged while the rule's other behavior remains covered.
Written by the indexing model from the issue text.
Description
Description
FSharpLint suggests I should replace lambda expression like fun x -> -sin x with composition, which makes a much less legible code (like sin >> ((*) -1.) or sin >> (~-)).
Repro steps
Define a lambda like
let sampleEnergy= (fun x -> -sin x)
Expected behavior
FSharpLint should accept the existing lambda expression as it is.
- Dominant language
- F#
- Stars
- 327
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
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.
More from fsprojects/FSharpLint
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
fsprojects/FSharpLint#869 · 2 comments ·
-
Repo Assist? Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
fsprojects/FSharpLint#849 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
fsprojects/FSharpLint#840 · 7 comments · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
fsprojects/FSharpLint#838 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
fsprojects/FSharpLint#836 ·
All issues in fsprojects/FSharpLint
Similar issues
-
comp/cron P2 sweeper:risk-automation type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#117792 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
bancolombia/sentinel#20 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
alunduil/woodland-generators#669 ·