Explanation

A block of code is initiated by a reserved word, but the corresponding end statement for this block does not appear to line up with the opening statement. This message appears only if the end is at least two lines lower than the opening reserved word, and the number of indentation characters is off by more than one. Because Code Analyzer counts a tab character and a single space as one character each, you are likely to see this message if you mix tabs and spaces to indent text. Even though the code appears aligned to you, Code Analyzer interprets it as misaligned.

The most common cause for this message is a missing or extra end statement, which causes the end statements to be paired with the wrong reserved words.


Suggested Action

Realign the reserved word and add the missing end statement as appropriate. If you frequently mix tabs and spaces and do not want to make them consistent, then suppress all instances of this message in the file or disable all instances of this message in all files, as described in Adjust Code Analyzer Message Indicators and Messages.