-
Notifications
You must be signed in to change notification settings - Fork 73
Open
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.
Metadata
Metadata
Assignees
Labels
No labels