You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Sonar Analyzer version 8.49, the following code, the method HasS4457Async erroneously raises S4457, whereas this does not happen for the method NoS4457Async
The method cannot be split to do the validation before the async code as the validation relies on the result of the async code.
In Sonar Analyzer version 8.48, it doesn't cause S4457.
Thank you for opening this issue, @paulhickman-a365. Your feedback helps us improve our products. We will look at it as soon as possible. After we confirm the issue, we will add labels and put it in our backlog.
zsolt-kolbay-sonarsource
changed the title
S4457 False positive when argument check is after async code
Fix S4457 FP: When argument check is after async code
Jan 31, 2023
Description
In Sonar Analyzer version 8.49, the following code, the method HasS4457Async erroneously raises S4457, whereas this does not happen for the method NoS4457Async
The method cannot be split to do the validation before the async code as the validation relies on the result of the async code.
In Sonar Analyzer version 8.48, it doesn't cause S4457.
Repro steps
Expected behavior
No warning
Actual behavior
Warning S4457
Known workarounds
Downgrade to 8.48 or suppress the warning
Related information
The text was updated successfully, but these errors were encountered: