scala-ide / scalariform

Scala source code formatter
http://scala-ide.github.com/scalariform/
MIT License
527 stars 148 forks source link

Named arguments in a single line "aligned" #271

Open shn-amn opened 6 years ago

shn-amn commented 6 years ago

With AlignParameters and AlignArguments on, when arguments or parameters are named on function call, even when they are all in the same line, if the first argument's name is shorter than the second, spaces are added between the name and the assignment, seemingly trying to "align" it with the second. As in

-   function(arg = 3, muchLongerArg = 13)
+   function(arg          = 3, muchLongerArg = 13)

I can't think of any situation where this behaviour can be desired.