Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
Co-authored-by: Costin Zaharia <56015273+costin-zaharia-sonarsource@users.noreply.github.com>
  • Loading branch information
1 parent 35e4bfb commit c89ccad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected override void Initialize(SonarAnalysisContext context) =>

private static bool HasLoggerInScope(SemanticModel semanticModel, int position, IMethodSymbol entryPoint, CancellationToken cancellationToken) =>
entryPoint.Parameters.Any(x => x.Type.DerivesOrImplements(KnownType.Microsoft_Extensions_Logging_ILogger))
// Instance method entrypoints might have access to an ILogger via injected fields/properties
// Instance method entry points might have access to an ILogger via injected fields/properties
// https://docs.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection
|| (entryPoint is { IsStatic: false, ContainingType: { } container }
&& container.AllAccessibleMembers(semanticModel, position, cancellationToken)
Expand Down

0 comments on commit c89ccad

Please sign in to comment.