diff --git a/.scalafmt.conf b/.scalafmt.conf index e2e62172..8704a7b5 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -10,15 +10,20 @@ newlines { docstrings.style = Asterisk -rewrite.rules = [Imports, RedundantBraces] -rewrite.imports.expand = true -rewrite.imports.sort = original -rewrite.imports.groups = [ - ["javax?\\..*"] - ["scala\\..*"] - ["sbt\\..*"] - ["org\\.apache\\.beam\\..*"] - ["com\\.spotify\\.scio\\..*"] - [".*"] - ["org\\.mkuthan\\..*"] -] +rewrite { + rules = [Imports, RedundantBraces] + + imports { + expand = true + sort = original + groups = [ + ["javax?\\..*"] + ["scala\\..*"] + ["sbt\\..*"] + ["org\\.apache\\.beam\\..*"] + ["com\\.spotify\\.scio\\..*"] + [".*"] + ["org\\.mkuthan\\..*"] + ] + } +}