-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add Scalafmt #210
Add Scalafmt #210
Conversation
@@ -17,7 +17,7 @@ matrix: | |||
- jdk: openjdk11 | |||
|
|||
script: | |||
- sbt "+ test" | |||
- sbt ";scalafmtSbtCheck; +scalafmtCheckAll; +test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the +
really necessary here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean on the scalafmtCheckAll
? It's not strictly necessary since there's no version-specific code at the moment, but if we do add it (for Dotty or whatever), it would be really easy to forget to change this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point!
@non Do you have any objection to Scalafmt here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one change I'd like to make from cats is to set align: none
. The default looks nice, but bloats diffs. You can see it here in the case statements.
@rossabaker Done. I do prefer the aligned version at this point, personally, but I guess we can change it in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 to the concept and I trust you on cleaning up the conflict. We may wish to squash this one to minimize whitespace churn in the history.
Should be good now, and yes, agree on squashing! |
9049bff
to
8be5afc
Compare
I went ahead and rebased manually since it was getting kind of messy. Will merge when green. |
I think it makes sense to go ahead and do this. I've copied the configuration from Cats.