private void AnalyzeSymbol(SymbolAnalysisContext context)
{
// TODO: Replace the following code with your own analysis, generating Diagnostic objects for any issues you find
var methodSymbol = (IMethodSymbol)context.Symbol;
if (methodSymbol.IsAsync == false)
{
return;
}
if (!methodSymbol.Name.ToLowerInvariant().EndsWith("async"))
{
var diag = Diagnostic.Create(Rule, methodSymbol.Locations[0], methodSymbol.Name);
context.ReportDiagnostic(diag);
}
}