-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.scalafmt.conf
19 lines (19 loc) · 1.17 KB
/
.scalafmt.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version = 2.4.0
maxColumn = 120 // Column width
style = defaultWithAlign // Use default alignment
continuationIndent.defnSite = 2 // Indentation definition site
align.openParenCallSite = false // Disable newline after each parameter on call site
align.openParenDefnSite = false // Disable newline after each parameter on definition site
continuationIndent.extendSite = 2 // Number of spaces when breaking `extends` over multiple lines
assumeStandardLibraryStripMargin = true // Align the | when breaking strings with the triple quotes
danglingParentheses = true // )) becomes )\n)
rewrite.rules = [
RedundantParens, // No redundant parenthesis
SortImports, // Sort imports
PreferCurlyFors // for (a <- as; b <- bs) is rewritten to curly bracket notation
]
spaces.inImportCurlyBraces = false // Spaces in import curly brackets
trailingCommas = never // Scala 2.11 style, no trailing commas
align.tokens.add = [ // Custom alignment tokens
{ code = "shouldBe" }
]