Reduce procedural code

 home styleguide  single file   example  edit

reduce_procedural_code

Description

Checks FORM and FUNCTION-MODULE have few statements

Extended Information

Delegate logic to a class method instead of using FORM or FUNCTION-MODULE.

https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-object-orientation-to-procedural-programming

Comments are not counted as statements.

Default Configuration

Hover to see descriptions, Ctrl+Space for suggestions

Examples