https://github.com/Netflix/atlas
Raw File
Tip revision: c2dd5c3d60dcc80154175efca8304be118a2e6b3 authored by brharrington on 14 December 2022, 23:59:05 UTC
remove redundant clauses when normalizing (#1505)
Tip revision: c2dd5c3
.scalafmt.conf
version = 3.5.9
runner.dialect = scala213

style = defaultWithAlign

align.openParenCallSite = false
align.openParenDefnSite = false
align.tokens = [{code = "->"}, {code = "<-"}, {code = "=>", owner = "Case"}]

continuationIndent.callSite = 2
continuationIndent.defnSite = 2

danglingParentheses.preset = true

docstrings.style = keep

indentOperator = spray
indentOperator.excludeRegex = "^(&&|\\|\\||~)$"
indentOperator.exemptScope = all

literals.hexDigits = Upper

maxColumn = 100

newlines.afterCurlyLambdaParams = keep
newlines.beforeCurlyLambdaParams = multilineWithCaseOnly
newlines.inInterpolation = oneline
newlines.topLevelBodyIfMinStatements = [before]
newlines.topLevelStatementBlankLines = [
  { blanks { before = 1, after = 0 } }
]

project.excludeFilters = [".*\\.sbt"]

rewrite.rules = [RedundantParens, ExpandImportSelectors, AvoidInfix]

spaces.inImportCurlyBraces = false
back to top