Skip to content

Commit

Permalink
feat: update to scalafmt 3.4.0 (#352)
Browse files Browse the repository at this point in the history
* feat: update to scalafmt 3.4.0

* fix: use main branch instead of master for actions
  • Loading branch information
hseeberger authored Jan 29, 2022
1 parent 11ce988 commit 1b68a3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Test

on:
push:
branches: [ master ]
branches: [main]
pull_request:
branches: [ master ]
branches: [main]

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version = "3.3.2"
version = "3.4.0"

preset = "defaultWithAlign"
runner.dialect = "scala213source3"

maxColumn = 100
indentOperator.preset = "spray"
unindentTopLevelOperators = true
indentOperator.exemptScope = "all"
spaces.inImportCurlyBraces = true
rewrite.rules = ["Imports", "RedundantBraces", "RedundantParens"]
rewrite.imports.sort = "ascii"
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/de/heikoseeberger/sbtfresh/Template.scala
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ private object Template {
|}""".stripMargin

def scalafmtConf: String =
"""|version = "3.3.2"
"""|version = "3.4.0"
|
|preset = "defaultWithAlign"
|runner.dialect = "scala3"
|
|maxColumn = 100
|indentOperator.preset = "spray"
|unindentTopLevelOperators = true
|indentOperator.exemptScope = "all"
|spaces.inImportCurlyBraces = true
|rewrite.rules = ["Imports", "RedundantBraces", "RedundantParens"]
|rewrite.imports.sort = "ascii"
Expand Down

0 comments on commit 1b68a3a

Please sign in to comment.