TutorialEnforcement parameters




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

The enforcement of quality and style guidelines is highly customizable. For example, say your project leader decides that goto statements should not be reported as errors. Command set-enforcement-parameters (menu: Options/Enforcement Preferences/Set) allows you to change which guidelines are enforced.

You should still have one goto statement in your program. If you do not, then create one in the *untitled* buffer.

The new guideline does not take effect immediately, but only when you invoke the command use-enforcement-parameters (menu: Options/Enforcement Preferences/Use).

Note that the error message associated with the goto statement disappears.

Ada-ASSURED allows the use of certain identifiers in certain contexts to be flagged as errors. For example, say a project wishes to forbid the use of the identifier X anywhere.

Note that a new violation message appears in the Ada program. This feature is useful for finding identifiers whose use is considered erroneous. For example, it can be used to forbid use of identifiers that have become keywords in Ada 95.

There are two levels of style enforcement provided: Violations and Indicators, where indicators are considered to be less severe than violations. As delivered, indicators appear only in the MESSAGES view and not in-line.


Forward