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 S4507 FP: Top-level statements #8572

Merged

Conversation

zsolt-kolbay-sonarsource
Copy link
Contributor

Fixes #6772

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good. Two more code block syntax kinds are missing

Comment on lines 30 to 31
SyntaxKind.AddAccessorDeclaration,
SyntaxKind.AddAccessorDeclaration,

Choose a reason for hiding this comment

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

Suggested change
SyntaxKind.AddAccessorDeclaration,
SyntaxKind.AddAccessorDeclaration,
SyntaxKind.AddAccessorDeclaration,

or SyntaxKind.WhileStatement
or SyntaxKind.ConditionalExpression
or SyntaxKind.MethodDeclaration
or SyntaxKind.SimpleLambdaExpression))

Choose a reason for hiding this comment

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

Misses
or SyntaxKind.AnonymousMethodExpression
or SyntaxKind.ParenthesizedLambdaExpression

Copy link

sonarcloud bot commented Feb 26, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Feb 26, 2024

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM

@martin-strecker-sonarsource martin-strecker-sonarsource merged commit e0fd5d6 into master Feb 27, 2024
28 checks passed
@martin-strecker-sonarsource martin-strecker-sonarsource deleted the Zsolt/Fix-S4507-FP-top-level-statements branch February 27, 2024 08:50
@martin-strecker-sonarsource martin-strecker-sonarsource removed their assignment Feb 29, 2024
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

Successfully merging this pull request may close these issues.

Fix S4507 FP: Error raised on .NET 7 although the debug feature is deactivated
2 participants