rspec/rules/S3923/description.adoc
Fred Tingaud 1d958ef229
Modify rule S3923: LaYC identical branches
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
2023-06-08 17:06:21 +02:00

8 lines
260 B
Plaintext

Having all branches of a `switch` or `if` chain with the same implementation indicates a problem.
In the following code:
include::{example}[]
Either there is a copy-paste error that needs fixing or an unnecessary `switch` or `if` chain that needs removing.