fredrikekre / Runic.jl

A code formatter for Julia with rules set in stone.
MIT License
98 stars 3 forks source link

Continued expressions commited to multiple lines #9

Closed fredrikekre closed 3 months ago

fredrikekre commented 4 months ago

I am not sure yet whether Runic will reformat to stay within a certain line width (gofmt does not) but if an expression have already commited to multiple lines, for example

some_function_name(argument1,
    argument2)

This should insert a newline after ( and before ):

some_function_name(
    argument1,
    argument2,
)

and, where applicable, add a trailing , to the last item.

fredrikekre commented 4 months ago

Also applies for arrays, tuples, function definitions and curly.