FSharpLint icon indicating copy to clipboard operation
FSharpLint copied to clipboard

Feature Request: favour typed Async.Ignore

Open aarani opened this issue 3 years ago • 0 comments

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.

aarani avatar Oct 21 '22 11:10 aarani