Skip to content

Commit

Permalink
fix: add scalafix
Browse files Browse the repository at this point in the history
  • Loading branch information
cipriansofronia committed Aug 14, 2023
1 parent 02777ec commit 20c694c
Show file tree
Hide file tree
Showing 42 changed files with 694 additions and 681 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Scala CI

on:
push:
branches: [ master ]
branches: [ master, series/0.x ]
pull_request:
branches: [ master ]
branches: [ master, series/0.x ]

jobs:
build:
Expand Down
42 changes: 23 additions & 19 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
version = "2.7.5"
version = "3.5.9"
runner.dialect = scala213
align.preset = some
maxColumn = 120
align.preset = most
align.multiline = false
continuationIndent.defnSite = 2
assumeStandardLibraryStripMargin = true
docstrings = JavaDoc
lineEndings = preserve
includeCurlyBraceInSelectChains = false
danglingParentheses.preset = true
optIn.annotationNewlines = true
newlines.alwaysBeforeMultilineDef = false

rewrite.rules = [RedundantBraces]
align.tokens = [
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = "=>", owner = "Case"}
]

align.openParenCallSite = false

newlines.source=keep
newlines.topLevelStatements = [before]
newlines.beforeMultiline = keep
newlines.topLevelStatementsMinBreaks = 1

optIn.breakChainOnFirstMethodDot = true

continuationIndent.defnSite = 2

project.excludeFilters = []
verticalMultiline.atDefnSite = true
verticalMultiline.arityThreshold = 3
verticalMultiline.newlineAfterOpenParen = true

rewrite.redundantBraces.generalExpressions = false
rewriteTokens = {
"⇒": "=>"
"→": "->"
"←": "<-"
}
danglingParentheses.callSite = false
Loading

0 comments on commit 20c694c

Please sign in to comment.