fsprojects / fsprojects/FSharpLint

bug: AvoidSinglePipeOperator false negative

Open
#827 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

From FSharpLint codebase itself (src/FSharpLint.Core/Rules/Conventions/DisallowShadowing.fs):

    let extractIdentifiersFromSimplePats (simplePats: SynSimplePats) : List<Ident> =
        match simplePats with
        | SynSimplePats.SimplePats(patterns, _, _) ->
            patterns |> List.map extractIdentifier

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.

Research direction

Start with src/FSharpLint.Core/Rules/Conventions/DisallowShadowing.fs and inspect how extractIdentifiersFromSimplePats handles the shown pipeline expression. Reproduce the AvoidSinglePipeOperator false negative and verify that the rule detects this code when the fix is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.