mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:39:46 +00:00
Fixed spelling
This commit is contained in:
parent
385af3296f
commit
4aba041c40
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user