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 S2737 FP: Raised when exception filter is used #9385

Merged
merged 4 commits into from
Jun 4, 2024

Conversation

pavel-mikula-sonarsource
Copy link
Contributor

Fixes #8199

@pavel-mikula-sonarsource pavel-mikula-sonarsource changed the title Fix S2737 FP: Raised when exception filter is used. Fix S2737 FP: Raised when exception filter is used Jun 4, 2024
Copy link

sonarcloud bot commented Jun 4, 2024

Quality Gate Passed Quality Gate passed for 'Sonar .NET Java Plugin'

Issues
0 New issues
0 Accepted issues

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

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Jun 4, 2024

Copy link
Contributor

@zsolt-kolbay-sonarsource zsolt-kolbay-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

@@ -58,7 +58,7 @@ Namespace Tests.TestCases

Try
doSomething()
Catch exc As ArgumentException When True 'Noncompliant
Catch exc As ArgumentException When True
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Catch exc As ArgumentException When True
Catch exc As ArgumentException When True ' FN

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll consider the True just a scaffolding noise. It's not a SE rule to determine if the expression is always true

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 S2737 FP: Raised when exception filter is used
2 participants