-
Notifications
You must be signed in to change notification settings - Fork 147
Align params update (related to issue #61) #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Matt Russell » scalariform #40 SUCCESS |
Matt Russell » scalariform #41 SUCCESS |
Matt Russell » scalariform #42 SUCCESS |
Matt Russell » scalariform #43 SUCCESS |
Matt Russell » scalariform #44 SUCCESS |
Matt Russell » scalariform #45 SUCCESS |
@daniel-trinh This repository went dark around the time I opened #61. (See the pull request I opened for #62 a full year ago, never touched.) I think you should consider it abandoned. |
@paulp Yea, I ran into @mdr a few days ago on reddit, he pretty much confirmed it was abandoned (although with intentions to revive it this year). I'll be publishing a SNAPSHOT versioned fork with this soon, followed by #53, #61, #62, #47, and #69 -- I've been waiting for this scalariform feature ever since I saw this issue and noticed golang's gofmt was doing something similar. |
Here's the snapshot:
Resolver:
sbt plugin usage:
See here for configuring build.sbt and Build.scala, sbt
|
@daniel-trinh, would you be interested in maintaining your fork going forward? We could bundle this in the Eclipse Scala IDE. |
@dragos, sure thing -- LMK what's needed on my end to get things moving. For now, I've published Scalariform for Scala |
@daniel-trinh, that's a great start. We have a special setup:
We'll have to see if we simply build from your fork, or update our mirror (we might need additional tags, but maybe we can do with just the release ones). |
Parameters now not only align by the first token in a parameter,
but also by the type and any defaults in the parameter
Original Source, before running scalariform
Before this update, after running scalariform
After this update, after running scalariform
The
implicit
modifier is now placed on it's own line in parameters if AlignParameters is enabled (and there's a newline in the parameter)Original Source, before running scalariform
Before this update, after running scalariform
After this update, after running scalariform
Multi-line types will not be placed on a new line unless the original source
parameter started with a newline
Original Source, before running scalariform
Before this update, after running scalariform
After this update, after running scalariform