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
pumano
changed the title
no-fallthrough has some false positive effects
no-fallthrough has some false positive effects when multiple cases present
Oct 10, 2024
@Boshen@rzvxa
I've been looking into this issue and am having the following difficulties.
In the switch-case syntax, when the condition contains a logical expression, the rule is not checked because the tests variable is not populated with the appropriate value.
The tests is generated from the get_switch_semantic_cases function, and the comments above this function say to treat this function as a black box, which is not an easy situation to fix.
@Boshen@rzvxa I've been looking into this issue and am having the following difficulties.
In the switch-case syntax, when the condition contains a logical expression, the rule is not checked because the tests variable is not populated with the appropriate value.
The tests is generated from the get_switch_semantic_cases function, and the comments above this function say to treat this function as a black box, which is not an easy situation to fix.
Can I get some help to resolve this issue?
Yeah, We have some limitations at the moment that makes accessing cases really difficult. Feel free to tinker with that demonic function to get it to work.
in some edge cases (looks like problem in
||
and&&
):The text was updated successfully, but these errors were encountered: