TutorialStyle enforcement




Prev | Up | Next | Back | Forward | Tutorial Top

Ada-ASSURED supports professional quality and style guidelines. Many of these are enforced automatically by the pretty printer. Style violations that can not be corrected by formatting are automatically detected and indicated. These require programmer intervention to correct.

The use of the goto is detected and a violation message is printed inline. Notice that the violation message is formatted as a comment, so it will not interfere with compilation. Violation codes in square brackets, e.g., [V4], are hot links to Ada 95 Quality and Style: Guidelines for Professional Programmers.

Ada-ASSURED detects and reports many different types of style violation. For example, all blocks must be named.

Note that the block template comes supplied with a placeholder for the block name. This is an optional part of the syntax, so when the selection is moved away from the placeholder, it will disappear.


Forward