jaehyunup / kotlin-auto-fill

filling your kotlin function/constructor with default or random values.
46 stars 5 forks source link

Fill for function calls with arguments already specified #7

Open baseballyama opened 6 months ago

baseballyama commented 6 months ago

Thank you for the plugin. This is so helpful!

I have a one feature request.

Now I have below code.

doSomething(foo, bar, baz)

Now I would like to convert it to...

doSomething(foo=foo, bar=bar, baz=baz)

Automatically.

Thank you!

jaehyunup commented 6 months ago

I think you mean the ability to change all non 'named-arguments' style code. That's a great idea! I'll try to include it in the next version.

jaehyunup commented 6 months ago

8 is also a good idea, I don't know if we can work on it together but I'll try. I accidentally closed this issue and reopened it

baseballyama commented 5 months ago

This is just my personal update, but I implemented auto fixable detekt rule based on NamedArguments, so now I can add named arguments automatically when I run detekt.

https://detekt.dev/docs/rules/complexity#namedarguments