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
|
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
|
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
|
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
|
2021-12-06 08:06:26 +01:00
|
|
|
danglingParentheses.preset = true
|
2019-04-20 09:23:08 +02:00
|
|
|
|
|
|
|
|
trailingCommas = preserve
|
2025-01-02 03:16:32 +01:00
|
|
|
|
|
|
|
|
rewrite.scala3.convertToNewSyntax = true
|
|
|
|
|
rewrite.scala3.newSyntax.control = false
|