Skip to content

Commit

Permalink
Merge pull request #382 from StefanMaron/development
Browse files Browse the repository at this point in the history
Resolve false positieve on Qualified Names
  • Loading branch information
Arthurvdv authored Nov 29, 2023
2 parents 42c4d2e + afdee00 commit f5d8b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Design/Rule0012DoNotUseObjectIdInSystemFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private void CheckForObjectIdsInFunctionInvocations(OperationAnalysisContext con
catch (System.InvalidOperationException)
{ }

SyntaxKind[] AllowedParameterKinds = { SyntaxKind.MemberAccessExpression, SyntaxKind.IdentifierName, SyntaxKind.InvocationExpression };
SyntaxKind[] AllowedParameterKinds = { SyntaxKind.MemberAccessExpression, SyntaxKind.IdentifierName, SyntaxKind.InvocationExpression, SyntaxKind.QualifiedName };

if (CurrentFunction != null && operation.TargetMethod.Parameters.Length != 0 && !AllowedParameterKinds.Contains(operation.Arguments[0].Syntax.Kind) && (operation.Arguments[0].Syntax.ToString() != "0" || !CurrentFunction.ZeroIDAllowed))
{
Expand Down

0 comments on commit f5d8b8f

Please sign in to comment.