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

Fix S2589 FP: Rule should not raise in case of var pattern where the variable is later used in the same conditional expression #8502

Closed
sagi1623 opened this issue Dec 22, 2023 · 1 comment

Comments

@sagi1623
Copy link
Contributor

Description

Rule should not raise in case of var pattern where the variable is later used in the same conditional expression

Repro steps

https://sonarcloud.io/project/issues?issues=AYon5-dgmw8zdopbp6Ko&open=AYon5-dgmw8zdopbp6Ko&id=sonaranalyzer-dotnet

Expected behavior

No issue should be raised.

Actual behavior

An issue is raised.

Known workarounds

None

Related information

  • C#/VB.NET Plugins version: 9.16
@pavel-mikula-sonarsource
Copy link
Contributor

Hi,
this was fixed in yesterday's release. It will be on SC in January
#8326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants