Skip to content

Unable to disable hint lints (FL0065) #466

@kentcb

Description

@kentcb

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

  1. Edit my fsharplint.json to 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions