Safe-DS / DSL

Statically checked Data Science programs.
https://dsl.safeds.com
MIT License
11 stars 0 forks source link

Formatter: Method chaining #1076

Open lars-reimann opened 2 months ago

lars-reimann commented 2 months ago

Is your feature request related to a problem?

The formatter does not handle chained methods well.

Desired solution

Split the calls along multiple lines, like

yield result = table
    .removeColumns(["ticket", "cabin", "port_embarked1", "fare1"])
    .shuffleRows();

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response