
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)
13 lines
280 B
Plaintext
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();
|
|
}
|
|
----
|