Skip to content

Conversation

@ggerganov
Copy link
Member

This warning does not seem very useful and it floods the editor with warnings in most switch statements:

image

@slaren
Copy link
Member

slaren commented Mar 8, 2025

I would say this depends on the code style, but usually consecutive cases with the same body would be consolidated, rather than duplicating the same code for every case. If that's followed consistently, then consecutive repeated cases have a high chance of being unintended, and this is a very useful check.

@ggerganov ggerganov closed this Mar 10, 2025
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.

4 participants