Rule Definition
For maintenability reasons, it is better to avoid using the EXIT statement in includes. If a program references such an include and if developers did not see the EXIT statements, then blocks could be terminated unexpectedly or the program could stop prematurely.
Remediation
Use EXIT statements in programs that call the include and remove these statements from include. It could be better to use return codes and to let the calling code managing the exit.
Related Technologies
Technical Criterion
Complexity - Algorithmic and Control Structure Complexity
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.