Prefer Inline Declarations

 home quick fix  experimental  upport styleguide  example  edit

prefer_inline

Description

Prefer inline to up-front declarations.

EXPERIMENTAL

Extended Information

EXPERIMENTAL

Activates if language version is v740sp02 or above.

Variables must be local(METHOD or FORM).

No generic or void typed variables. No syntax errors.

First position used must be a full/pure write.

Move statment is not a cast(?=)

https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-inline-to-up-front-declarations

Default Configuration

Hover to see descriptions, Ctrl+Space for suggestions

Examples