-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update scalafmt and dependencies * Remove sbtpolecat --------- Co-authored-by: Alfredo Torre <atorre@descartes.com>
- Loading branch information
Showing
24 changed files
with
609 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,74 @@ | ||
# See: https://scalameta.org/scalafmt/docs/configuration.html | ||
version = "3.7.17" | ||
|
||
# Version https://scalameta.org/scalafmt/docs/configuration.html#version | ||
version = 3.7.17 | ||
# Dialect https://scalameta.org/scalafmt/docs/configuration.html#scala-dialects | ||
runner.dialect = scala213source3 | ||
align.preset = more | ||
style = defaultWithAlign # For pretty alignment. | ||
maxColumn = 100 | ||
docstrings.style = SpaceAsterisk | ||
docstrings.removeEmpty = true | ||
continuationIndent.callSite = 2 | ||
continuationIndent.defnSite = 4 | ||
|
||
# Top-level preset https://scalameta.org/scalafmt/docs/configuration.html#top-level-presets | ||
preset = defaultWithAlign | ||
|
||
# Common https://scalameta.org/scalafmt/docs/configuration.html#most-popular | ||
maxColumn = 120 | ||
assumeStandardLibraryStripMargin = true | ||
|
||
# Alignment https://scalameta.org/scalafmt/docs/configuration.html#alignment | ||
align { | ||
preset = more | ||
allowOverflow = true | ||
} | ||
|
||
# Newlines https://scalameta.org/scalafmt/docs/configuration.html#newlines | ||
newlines { | ||
alwaysBeforeMultilineDef = false | ||
implicitParamListModifierPrefer = before | ||
beforeCurlyLambdaParams = multilineWithCaseOnly | ||
inInterpolation = "avoid" | ||
} | ||
|
||
# Comment processing https://scalameta.org/scalafmt/docs/configuration.html#comment-processing | ||
docstrings { | ||
style = Asterisk | ||
wrap = no | ||
removeEmpty = true | ||
} | ||
|
||
# Spaces https://scalameta.org/scalafmt/docs/configuration.html#spaces | ||
spaces { | ||
inImportCurlyBraces = true # more idiomatic to include whitepsace in import x.{ yyy => zzz } | ||
} | ||
|
||
# Project https://scalameta.org/scalafmt/docs/configuration.html#project | ||
project { | ||
git = true | ||
excludeFilters = ["target/"] | ||
} | ||
|
||
# Rewrite Rules https://scalameta.org/scalafmt/docs/configuration.html#rewrite-rules | ||
rewrite { | ||
rules = [ | ||
AvoidInfix, # https://scalameta.org/scalafmt/docs/configuration.html#avoidinfix | ||
RedundantParens, # https://scalameta.org/scalafmt/docs/configuration.html#redundantparens | ||
SortModifiers, # https://scalameta.org/scalafmt/docs/configuration.html#sortmodifiers | ||
PreferCurlyFors, # https://scalameta.org/scalafmt/docs/configuration.html#prefercurlyfors | ||
Imports, # https://scalameta.org/scalafmt/docs/configuration.html#imports | ||
] | ||
sortModifiers.order = ["private", "protected", "final", "sealed", "abstract", "implicit", "override", "lazy"] | ||
imports { | ||
expand = true | ||
sort = original | ||
groups = [["java(x)?\\..*"], ["scala\\..*"], ["sbt\\..*"]] | ||
} | ||
trailingCommas.style = keep # https://scalameta.org/scalafmt/docs/configuration.html#trailing-commas | ||
} | ||
|
||
fileOverride { | ||
"glob:**/src/main/scala-3/**" { | ||
runner.dialect = scala3 | ||
} | ||
} | ||
|
||
includeCurlyBraceInSelectChains = false | ||
project.git = true | ||
project.excludeFilters = ["target/"] | ||
|
||
continuationIndent { | ||
callSite = 2 | ||
defnSite = 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.9.7 | ||
sbt.version=1.9.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.