styleguides
styleguides copied to clipboard
What is considered a parameter?
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?