-
Notifications
You must be signed in to change notification settings - Fork 5
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
Change scalafmt.conf #1133
Change scalafmt.conf #1133
Conversation
Use file from lucuma-ui
BundleMonUnchanged files (4)
No change in files bundle size Final result: ✅ |
Visit the preview URL for this PR (updated for commit cdf8e09): https://explore-gemini--pr1133-change-scalafmt-conf-h9j5el8j.web.app (expires Tue, 05 Oct 2021 22:11:46 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
I missed the comment in lucuma-ui and I see now that we lost aligning |
Yeah. It's a bit odd. For example, in ConnectionsStatus.scala some, but not all of the |
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.
LGTM
Interestingly, it only seems to be possible to get the alignment of the Also, I like the instead of This is something we had previously with the I wonder if we should wait for the fix to scalameta/scalafmt#2775 in scalameta/scalafmt#2753 and go back to the |
I also prefer the alignment inside the for loops We can certainly wait for upstream fixes |
The failure to sometimes not align the Unless someone objects, I'll close this PR and see what happens when a new version of scalafmt-core is released. I would like to compare what happens with |
Just a note for future work. If we use One reason to favor setting the tokens explicitly vs the most preset is to not get surprised by future additions to the most preset. On the other hand, I guess using |
Waiting on new version of scalafmt. |
Use file from lucuma-ui