-
Notifications
You must be signed in to change notification settings - Fork 445
/
Copy path.scalafmt.conf
29 lines (25 loc) · 1 KB
/
.scalafmt.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Version https://scalameta.org/scalafmt/docs/configuration.html#version
version = 3.8.3
# Dialect https://scalameta.org/scalafmt/docs/configuration.html#scala-dialects
runner.dialect = scala212source3
style = IntelliJ
maxColumn = 120
rewrite.rules = [SortImports, RedundantBraces]
docstrings.blankFirstLine = yes
project.excludePaths = [
# [error] (Compile / scalafmt) org.scalafmt.sbt.ScalafmtSbtReporter$ScalafmtSbtError: scalafmt:
# WixHelper.scala:105: error: Unable to format file due to bug in scalafmt
"glob:**/src/main/scala/com/typesafe/sbt/packager/windows/WixHelper.scala"
]
project.layout = StandardConvention
fileOverride {
"glob:**/src/**/scala-3/**" {
runner.dialect = scala3
runner.dialectOverride.allowAsForImportRename = false
}
}
rewrite.scala3.convertToNewSyntax = true
rewrite.scala3.newSyntax.control = false
runner.dialectOverride.allowSignificantIndentation = false
runner.dialectOverride.allowAsForImportRename = false
runner.dialectOverride.allowStarWildcardImport = false