Rule M6-4-1 (required, implementation, automated)

An if ( condition ) construct shall be followed by a compound statement. The else keyword shall be followed by either a compound statement, or another if statement. See MISRA C++ 2008 [7]