This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 660
Comments
ematipico
changed the title
Oct 7, 2022
match_str_case_mismatch
https://rust-lang.github.io/rust-clippy/master/#match_str_case_mismatchmatch_str_case_mismatch
ematipico
added
A-Linter
Area: linter
I-Normal
Implementation: normal understanding of the tool and awareness
labels
Oct 7, 2022
This issue is stale because it has been open 14 days with no activity. |
ematipico
added
S-Planned
Status: planned by the team, but not in the short term
and removed
S-Stale
labels
Nov 2, 2022
Hi @ematipico. |
I doubt that a rule limited to this pattern will catch many bugs and isn't what the clippy equivalent is testing for.
This feels more valuable to me (testing in all places where conditions can appear: |
Should it only raise for conditional statements mentioned above or in general as well? For example, this also look right to me:
|
It probably makes sense in all positions where a value is compared with a string. |
MichaReiser
pushed a commit
that referenced
this issue
Nov 22, 2022
nhedger
pushed a commit
to biomejs/biome-vscode
that referenced
this issue
Sep 21, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://rust-lang.github.io/rust-clippy/master/#match_str_case_mismatch
For this rule, we should try to implement simple cases such as:
The text was updated successfully, but these errors were encountered: