2020-01-12 22:47:47 +01:00
|
|
|
version = 2.3.2
|
|
|
|
|
edition = 2019-10
|
2017-04-20 01:56:35 +02:00
|
|
|
maxColumn = 100
|
|
|
|
|
project.git = true
|
2019-04-20 20:04:54 +02:00
|
|
|
project.excludeFilters = [ "\\Wsbt-test\\W", "\\Winput_sources\\W", "\\Wcontraband-scala\\W" ]
|
2020-06-29 17:02:38 +02:00
|
|
|
lineEndings = preserve
|
2017-04-20 01:56:35 +02:00
|
|
|
|
2019-09-05 20:11:02 +02:00
|
|
|
# https://docs.scala-lang.org/style/scaladoc.html recommends the JavaDoc style.
|
2017-04-20 01:56:35 +02:00
|
|
|
# scala/scala is written that way too https://github.com/scala/scala/blob/v2.12.2/src/library/scala/Predef.scala
|
|
|
|
|
docstrings = JavaDoc
|
|
|
|
|
|
|
|
|
|
# This also seems more idiomatic to include whitespace in import x.{ yyy }
|
|
|
|
|
spaces.inImportCurlyBraces = true
|
2017-10-03 17:16:09 +02:00
|
|
|
|
|
|
|
|
# This is more idiomatic Scala.
|
2019-09-05 20:11:02 +02:00
|
|
|
# https://docs.scala-lang.org/style/indentation.html#methods-with-numerous-arguments
|
2017-10-03 17:16:09 +02:00
|
|
|
align.openParenCallSite = false
|
|
|
|
|
align.openParenDefnSite = false
|
2018-04-04 16:20:24 +02:00
|
|
|
|
|
|
|
|
# For better code clarity
|
|
|
|
|
danglingParentheses = true
|
2019-04-20 09:23:08 +02:00
|
|
|
|
|
|
|
|
trailingCommas = preserve
|
2021-11-16 02:36:27 +01:00
|
|
|
|
|
|
|
|
# TODO update scalafmt and enable Scala 3
|
|
|
|
|
project.excludeFilters = [
|
|
|
|
|
"internal/util-position/src/main/scala-3/sbt/internal/util/SourcePositionMacro.scala"
|
|
|
|
|
]
|