Scala formatter - show named parameter

576 Views Asked by At

I have a relatively large Scala code base that does not use named parameters for any function/class calls. Rather than going in and manually entering it, which would be a very tedious process, I was looking at a formatter to do the job. The best I found is scalariform, but I'm not sure whether I can even write a rule for something so complex.

I'm curious if anyone has ran into a similar problem and found a powerful formatter.

1

There are 1 best solutions below

4
On

The Scala Refactoring library might be something you could use. You will need some knowledge of Scala's Abstract Syntax Tree representation.

Why do you want to use named parameters throughout your code base? I like IntelliJ's default which is to suggest to name boolean arguments (only).