version = 3.11.1
runner.dialect = scala3

maxColumn = 100
project.git = true
project.excludeFilters = [ "\\Wsbt-test\\W", "\\Winput_sources\\W", "\\Wcontraband-scala\\W" ]
lineEndings = preserve

# https://docs.scala-lang.org/style/scaladoc.html recommends the JavaDoc style.
# scala/scala is written that way too https://github.com/scala/scala/blob/v2.12.2/src/library/scala/Predef.scala
docstrings.style = Asterisk
docstrings.wrap = false

# This also seems more idiomatic to include whitespace in import x.{ yyy }
spaces.inImportCurlyBraces = true

# This is more idiomatic Scala.
# https://docs.scala-lang.org/style/indentation.html#methods-with-numerous-arguments
align.openParenCallSite = false
align.openParenDefnSite = false

# For better code clarity
danglingParentheses.preset = true

trailingCommas = preserve

rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.newSyntax.control = false

fileOverride {
  "glob:**/project/**" {
    runner.dialect = scala212source3
    runner.dialectOverride.allowAsForImportRename = false
  }
  "glob:**/*.sbt" {
    runner.dialect = scala212source3
    runner.dialectOverride.allowAsForImportRename = false
  }
}
