diff --git a/.scalafmt.conf b/.scalafmt.conf index 31cf066..922f8ff 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -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 @@ -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"