Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Apr 23, 2024
1 parent 479536f commit 25a3cd2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ protected override void Initialize(SonarAnalysisContext context) =>
symbolStartContext.RegisterSyntaxNodeAction(nodeContext =>
{
if (IsInPublicMethod(nodeContext.Node)
&& !nodeContext.Node.Ancestors().Any(x => x.IsAnyKind(SyntaxKind.ConstructorDeclaration, SyntaxKindEx.PrimaryConstructorBaseType))
&& IsReusableClient(nodeContext)
&& !IsAssignedForReuse(nodeContext))
&& !(nodeContext.Node.Ancestors().Any(x => x.IsAnyKind(SyntaxKind.ConstructorDeclaration, SyntaxKindEx.PrimaryConstructorBaseType))
|| IsAssignedForReuse(nodeContext)))
{
nodeContext.ReportIssue(Rule, nodeContext.Node);
}
Expand Down

0 comments on commit 25a3cd2

Please sign in to comment.