icsharpcode / NRefactory

NRefactory - Refactoring Your C# Code
684 stars 262 forks source link

New analizer suggestion: ConfigureAwait checking #459

Open DavidKarlas opened 9 years ago

DavidKarlas commented 9 years ago

Libraries writers who use async/await (e.g. roslyn) use almost always .ConfigureAwait(false). I this case it would make sense to have some analizer like this: http://blog.cincura.net/233476-checking-for-configureawait-false-automatically/

If WPF or other UI developers don't like this warnings they can always disable this analizer... or use .ConfigureAwait(true) to silence it if 99% of other await have to use .ConfigureAwait(false).