styleguides icon indicating copy to clipboard operation
styleguides copied to clipboard

What is considered a parameter?

Open larshp opened this issue 1 year ago • 0 comments

Relevant sections of the style guide https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#keep-single-parameter-calls-on-one-line

Question in

result = some_method_call( VALUE #( FOR i = 2 UNTIL i > 4 ( strings[ i ] ) ) ).

I'd say some_method_call has one parameter, and there are no additional calls, but SAP has chosen this to be formatted as

result = some_method_call( VALUE #( FOR i = 2 UNTIL i > 4
                                    ( strings[ i ] ) ) ).

which goes against the rule? What is considered a parameter and what is not?

larshp avatar Dec 20 '24 07:12 larshp