sbt/.scalafmt.conf

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
903 B
Plaintext
Raw Normal View History

2024-10-22 12:57:10 +02:00
version = 3.8.3
2021-12-06 08:06:26 +01:00
runner.dialect = scala3
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
2021-12-06 08:06:26 +01:00
docstrings.style = Asterisk
2022-01-18 05:21:07 +01:00
docstrings.wrap = false
2017-04-20 01:56:35 +02:00
# 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
2021-12-06 08:06:26 +01:00
danglingParentheses.preset = true
2019-04-20 09:23:08 +02:00
trailingCommas = preserve
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.newSyntax.control = false