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 indexer #6642

Closed
csaba-sagi-sonarsource opened this issue Jan 16, 2023 · 0 comments · Fixed by #8464
Closed

FN S2190: No issues raised if recursion is inside an indexer #6642

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

Comments

@csaba-sagi-sonarsource
Copy link
Contributor

Description

No issues are raised if recursion is inside an indexer.

Repro steps

class SampleCollection
{
    public int this[int i]
    {
        get { return this[i]; } // FN
        set { this[i] = value; } // FN
    }
}

Expected behavior

Issues should be raised if recursion is inside an indexer.

Actual behavior

No issues are raised if recursion is inside an indexer.

Known workarounds

Related information

  • C#/VB.NET Plugins version: 8.51.0.59060
@csaba-sagi-sonarsource csaba-sagi-sonarsource added Area: C# C# rules related issues. Type: False Negative Rule is NOT triggered when it should be. labels Jan 16, 2023
@mary-georgiou-sonarsource mary-georgiou-sonarsource added this to Review in progress in Best Kanban Jun 7, 2024
@CristianAmbrosini CristianAmbrosini moved this from Review in progress to Review approved in Best Kanban Jun 7, 2024
Best Kanban automation moved this from Review approved to Validate Peach Jun 7, 2024
@mary-georgiou-sonarsource mary-georgiou-sonarsource moved this from Validate Peach to Done in Best Kanban Jun 10, 2024
@mary-georgiou-sonarsource mary-georgiou-sonarsource moved this from Done to Validate Peach in Best Kanban Jun 10, 2024
@mary-georgiou-sonarsource mary-georgiou-sonarsource moved this from Validate Peach to Done in Best Kanban Jun 10, 2024
@martin-strecker-sonarsource martin-strecker-sonarsource added this to the 9.27 milestone Jun 11, 2024
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
Best Kanban
  
Done
Development

Successfully merging a pull request may close this issue.

5 participants