-
Notifications
You must be signed in to change notification settings - Fork 18
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 #37
base: main
Are you sure you want to change the base?
Add scalafmt #37
Conversation
could probably use a check in the CI pipeline, but I don't know how |
I don't mind having hmm. were you thinking we should do this in |
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.
If we add scalafmt, the configuration had better be such that formatting matches the upstream scala repo, because eventually we'll want to merge the code of this repo with the standard library.
@@ -21,11 +22,11 @@ lazy val scalaLibraryNext = crossProject(JVMPlatform, JSPlatform) | |||
scalaModuleMimaPreviousVersion := None, | |||
scalacOptions ++= Seq("-deprecation", "-feature", "-Werror"), | |||
libraryDependencies ++= Seq( | |||
"org.scalacheck" %%% "scalacheck" % "1.15.0" % Test, | |||
"org.scalacheck" %%% "scalacheck" % "1.15.0" % 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.
If there is one place where trailing commas are useful and desirable, it is in sbt settings ...
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.
yeah, I know... this one annoyed me too.
I'm happy to try using always
instead
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.
and/or bug Olaf to add a new setting that does what we want ;)
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.
sbt/sbt uses this:
trailingCommas = preserve
the upstream repo is entirely manually formatted, so I don't think that will be an issue |
You tagged this as help wanted, I assume with CI checking the fmt? I made a PR for that against this PR. |
No description provided.