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

LVA: Refactor operation extensions #9480

Merged
merged 6 commits into from
Jun 28, 2024
Merged

Conversation

mary-georgiou-sonarsource
Copy link
Contributor

@mary-georgiou-sonarsource mary-georgiou-sonarsource commented Jun 27, 2024

All the operation extension methods (except the ones that are based on ProgramState) are now in the Sonar.Analyzer CFG projects.

Copy link
Contributor

@pavel-mikula-sonarsource pavel-mikula-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 85 to 86
.Select(x => x.Instance.AsFlowCapture())
.OfType<IFlowCaptureOperationWrapper>())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The OfType is a hidden null check that doesn't remove the nullability problem. Make it .Where(x => x.Instance.IsKind(..) and .Select(x => x.ToFlowCapture())

Copy link

sonarcloud bot commented Jun 28, 2024

Copy link

sonarcloud bot commented Jun 28, 2024

@mary-georgiou-sonarsource mary-georgiou-sonarsource merged commit 4205d20 into master Jun 28, 2024
26 checks passed
@mary-georgiou-sonarsource mary-georgiou-sonarsource deleted the mary/lvaclean branch June 28, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: CFG/SE CFG and SE related issues. Sprint: Hardening Fix FPs/FNs/improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants