Find EXIT or CHECK outside loops

 home quick fix styleguide  single file   example  edit

exit_or_check

Description

Detects usages of EXIT or CHECK statements outside of loops. Use RETURN to leave procesing blocks instead.

Extended Information

https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abenleave_processing_blocks.html
https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abapcheck_processing_blocks.html
https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#check-vs-return

Default Configuration

Hover to see descriptions, Ctrl+Space for suggestions

Examples