Skip to content

Feature Request: favour typed Async.Ignore #574

@aarani

Description

@aarani

Description

There's already a rule to favor typed ignore instead of the non-typed version,
the same logic is applicable to Async.Ignore, so maybe FSharpLint should
also throw a warning for usage of non-typed Async.Ignore.

Expected behavior

member self.ConnectToDirectory() =
        async {
            return 1
        }

do! self.ConnectToDirectory() |> Async.Ignore

In this sample FSharpLint should throw a warning to ask user
to use typed Async.Ignore like this:

do! self.ConnectToDirectory() |> Async.Ignore<int>

Actual behavior

FSharpLint doesn't throw any warning.

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