Code Analysis


Avoid using GOTO to improve readability

GOTO is perfectly legal but it becomes extraordinarily difficult to maintain code that uses GOTOs rather than conventional block structures. It is very rare to find any circumstances where a GOTO is necessary. 

Available in

SQL Code Guard

GOTO checks for specific labels can be ignored. 

You may, for example, have a corporate convention to use labels with standard names such as ‘Finish’, ‘ExitWithError’, ‘Cleanup’, and so on.

In this instance, you can add the labels to ST009 Allowed Labels in the  Rules / Customizable Rules  dialog using standard regular expression syntax.

Didn't find what you were looking for?