Every if that has an elseif section shall have an else section.
Priority
Strongly recommended
Severity level
4
Description
Every if with an elseif section shall have an else section, even if it does not contain executable code.
Rationale
By including an else section, default execution paths are not overlooked. Additionally, code coverage can be accurately reported because without else, it is unclear whether it is ever the case that neither the if nor the elseif conditions are true.