Skip to content

Commit

Permalink
scalafmt: group parameters, add extra
Browse files Browse the repository at this point in the history
These extra parameters do not yet change the formatting:
- explicitly align strip margins
- enable SortModifiers
- avoid simple overflow
- don't ignore newlines in syntax
  • Loading branch information
kitbellew committed Apr 1, 2024
1 parent 00390c8 commit d32b796
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
version = 3.8.1
runner.dialect = scala213
project.git = true
project.excludeFilters = [
plugin/src/sbt-test
]
project {
git = true
excludeFilters = [
plugin/src/sbt-test
]
}
newlines {
avoidForSimpleOverflow = [punct, slc, tooLong]
ignoreInSyntax = false
}
rewrite {
rules = [
Imports,
RedundantBraces,
RedundantParens
RedundantParens,
SortModifiers
]
imports {
sort = ascii
Expand All @@ -19,7 +26,11 @@ rewrite {
["org\\..*"]
]
}
sortModifiers.preset = styleGuide
}
align {
preset = none
stripMargin = true
}
align.tokens = none
assumeStandardLibraryStripMargin = true
onTestFailure = "To fix this, run ./bin/scalafmt from the project root directory"

0 comments on commit d32b796

Please sign in to comment.