fsprojects / fsprojects/FSharpLint
Unable to disable hint lints (FL0065)
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 327
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
Description
I can't seem to disable some of the default hint lints, such as List.map f (List.map g x) ===> List.map (g >> f) x.
Repro steps
- Edit my
fsharplint.jsonto include the following at the end:
"hints": {
"add": [],
"ignore": [
"List.map f (List.map g x) ===> List.map (g >> f) x",
"Array.map f (Array.map g x) ===> Array.map (g >> f) x",
"Seq.map f (Seq.map g x) ===> Seq.map (g >> f) x"
]
}
But I still get these hints:
Warning FL0065 `List.map f (List.map g x)` might be able to be refactored into `List.map (g >> f) x`.
Expected behavior
The hints in my ignore list should not be executed.
Actual behavior
The hints in my ignore list are still executed.
Known workarounds
None.
Related information
- Operating system: Windows 10
- Branch: not sure what is meant here. I installed using these instructions. Tool version is
0.16.5 - .NET Runtime, CoreCLR or Mono Version:
5.0.100-rc.2.20479.15
Extra notes
when I run from the command line I see "0 warnings" regardless of whether I have those hints disabled or not (without removing the violations in my code). So that has me confused. But also I'm wondering whether the warning I see in Visual Studio is due to my using the F# Lint extension and it somehow using a different configuration than my MSBuild integration.
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.
Research direction
Review the fsharplint.json hints configuration and compare the command-line, MSBuild, and F# Lint extension paths described in the report. Reproduce with the listed ignore entries and verify that FL0065 is suppressed consistently across the reported integrations.
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
- 35/100