Fixed spelling

This commit is contained in:
Thorsten Sommer 2025-02-23 17:03:01 +01:00
parent 385af3296f
commit 4aba041c40
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -38,14 +38,14 @@ public sealed class ProviderAccessAnalyzer : DiagnosticAnalyzer
{ {
var memberAccess = (MemberAccessExpressionSyntax)context.Node; var memberAccess = (MemberAccessExpressionSyntax)context.Node;
// Prüfen, ob wir eine Kette von Zugriffen haben, die auf "Providers" endet // Check if the member access is not on the `Providers` property:
if (memberAccess.Name.Identifier.Text != "Providers") if (memberAccess.Name.Identifier.Text != "Providers")
return; return;
// Den kompletten Zugriffspfad aufbauen // Get the full path of the member access:
var fullPath = this.GetFullMemberAccessPath(memberAccess); var fullPath = this.GetFullMemberAccessPath(memberAccess);
// Prüfen, ob der Pfad unserem verbotenen Muster entspricht // Check for the forbidden pattern:
if (fullPath.EndsWith("ConfigurationData.Providers")) if (fullPath.EndsWith("ConfigurationData.Providers"))
{ {
var diagnostic = Diagnostic.Create(RULE, memberAccess.GetLocation()); var diagnostic = Diagnostic.Create(RULE, memberAccess.GetLocation());