Skip to content

Commit

Permalink
update scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Apr 27, 2024
1 parent adeaca5 commit 9f68251
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
maxColumn = 120
align = none
rewrite.rules = [SortImports]
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
docstrings = JavaDoc
includeCurlyBraceInSelectChains = false
optIn.breakChainOnFirstMethodDot = false
version = "2.7.5"
version = "3.8.1"
runner.dialect = Scala213Source3
trailingCommas = preserve
fileOverride {
"glob:**/src/**/scala-3/**" {
runner.dialect = scala3
}
"glob:*.sbt" {
runner.dialect = scala212source3
}
}
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def gitHash(): String = sys.process.Process("git rev-parse HEAD").lineStream_!.h

val tagName = Def.setting {
s"v${if (releaseUseGlobalVersion.value) (ThisBuild / version).value
else version.value}"
else version.value}"
}
val tagOrHash = Def.setting {
if (isSnapshot.value) gitHash() else tagName.value
Expand Down

0 comments on commit 9f68251

Please sign in to comment.