Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FN S2190: No issues raised if recursion is inside an EventDeclaration #6644

Closed
csaba-sagi-sonarsource opened this issue Jan 16, 2023 · 0 comments · Fixed by #8464
Closed
Assignees
Labels
Area: C# C# rules related issues. Type: False Negative Rule is NOT triggered when it should be.
Milestone

Comments

@csaba-sagi-sonarsource
Copy link
Contributor

Description

No issues are raised if recursion is inside an EventDeclaration.

Repro steps

public delegate bool SomeDelegate();

public class SomeClass
{
    public event SomeDelegate OtherEvent
    {
        add
        {
            OtherEvent += value;
        }

        remove
        {
            OtherEvent -= value;
        }
    }
}

Expected behavior

Issues should be raised if recursion is inside an EventDeclaration.

Actual behavior

No issues are raised if recursion is inside an EventDeclaration.

Known workarounds

Related information

  • C#/VB.NET Plugins version: 8.51.0.59060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C# C# rules related issues. Type: False Negative Rule is NOT triggered when it should be.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants