Skip to content

Commit

Permalink
Copy .scalafmt.conf from core
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Apr 3, 2022
1 parent 9fcffc0 commit 87a286d
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions src/main/g8/.scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,38 @@
version = 3.4.3
runner.dialect = scala213
version = 3.5.0

style = default

maxColumn = 100

// Docstring wrapping breaks doctests
docstrings.wrap = false

// Vertical alignment is pretty, but leads to bigger diffs
align.preset = none

danglingParentheses.preset = true

rewrite.rules = [
AvoidInfix
RedundantBraces
RedundantParens
PreferCurlyFors
SortModifiers
]

rewrite.sortModifiers.order = [
override, implicit, private, protected, final, sealed, abstract, lazy
]

rewrite.trailingCommas.style = multiple

runner.dialect = scala212

fileOverride {
"glob:**/scala-3/**/*.scala" {
runner.dialect = scala3
}
"glob:**/scala-2.13/**/*.scala" {
runner.dialect = scala213
}
}

0 comments on commit 87a286d

Please sign in to comment.