sbt/.scalafmt.conf

29 lines
935 B
Plaintext
Raw Permalink Normal View History

version = 2.3.2
edition = 2019-10
2017-04-20 01:56:35 +02:00
maxColumn = 100
project.git = true
project.excludeFilters = [ "\\Wsbt-test\\W", "\\Winput_sources\\W", "\\Wcontraband-scala\\W" ]
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
# 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
align.openParenCallSite = false
align.openParenDefnSite = false
# 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"
]