rspec/rules/S3923/exceptions.adoc
cynthiabethea 1705a42285
modify-rule-layc-S3923 (#2507)
Small typo fix

## Review

A dedicated reviewer checked the rule description successfully for:

- [ ] logical errors and incorrect information
- [ ] information gaps and missing content
- [ ] text style and tone
- [ ] PR summary and labels follow [the
guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)
2023-07-17 15:55:41 +01:00

13 lines
280 B
Plaintext

=== Exceptions
This rule does not apply to `if` chains without `else`, nor to `switch` without a `default` clause.
----
if(b == 0) { //no issue, this could have been done on purpose to make the code more readable
doSomething();
} else if(b == 1) {
doSomething();
}
----