dotnet / roslynator

Roslynator is a set of code analysis tools for C#, powered by Roslyn.
https://josefpihrt.github.io/docs/roslynator
Other
3.1k stars 260 forks source link

RCS1090 should ignore ConfigureAwait that is not a `false` boolean #1564

Closed prezaei closed 1 month ago

prezaei commented 1 month ago

Verion: 4.1.8


How to repro:

    public static async Task FooAsync(this Func<Task> action)
    {
        await Task.CompletedTask.ConfigureAwait(ConfigureAwaitOptions.ForceYielding);
        await action();
    }