DotNetAnalyzers / AsyncUsageAnalyzers

Now superseded by Microsoft/vs-threading
https://github.com/Microsoft/vs-threading
Other
121 stars 18 forks source link

Update IncludeCancellationParameter analyzer to check overloads #42

Open sharwell opened 8 years ago

sharwell commented 8 years ago

Currently the analyzer does not check for an overload that takes a cancellation token. For example, the following interface would result in a diagnostic being reported, but it shouldn't.

interface InterfaceName
{
  Task MethodAsync();
  Task MethodAsync(CancellationToken cancellationToken);
}