Skip to content

Instantly share code, notes, and snippets.

@busti
Created May 17, 2020 22:35
Show Gist options
  • Save busti/5ceb4b20f041738e00f5654e19d5510a to your computer and use it in GitHub Desktop.
Save busti/5ceb4b20f041738e00f5654e19d5510a to your computer and use it in GitHub Desktop.
version = "2.5.2"
style = IntelliJ
maxColumn = 120
docstrings = ScalaDoc
project.git = true
project.includeFilters = [
".*\\.scala$"
".*\\.sbt$"
".*\\.sc$"
]
rewrite.rules = [SortImports]
align.preset = most
align.multiline = false
align.openParenDefnSite = false
align.tokens.add = [
{code = "=>", owner = "Case"},
{code = ":", owner = ".*"},
{code = "=", owner = ".*"},
{code = "extends", owner = ".*"},
{code = "%", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = "%%%", owner = "Term.ApplyInfix"},
{code = "->", owner = "Term.ApplyInfix"},
{code = "<-", owner = ":*"},
{code = ":=", owner = "Term.ApplyInfix"},
{code = "@", owner = "Pat.Bind"}
]
includeCurlyBraceInSelectChains = true
optIn.configStyleArguments = true
optIn.breakChainOnFirstMethodDot = true
newlines.implicitParamListModifierPrefer = before
newlines.afterCurlyLambda = never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment