Skip to content

Instantly share code, notes, and snippets.

@optician
Created September 8, 2018 08:03
Show Gist options
  • Save optician/0479ae07d531bcccb3070c9f8d9d14a9 to your computer and use it in GitHub Desktop.
Save optician/0479ae07d531bcccb3070c9f8d9d14a9 to your computer and use it in GitHub Desktop.
project.git = true
maxColumn = 120
lineEndings = unix
docstring = "ScalaDoc"
assumeStandardLibraryStripMargin = true
continuationIndent.callSite = 2
continuationIndent.defnSite = 4
style = defaultWithAlign
align.openParenCallSite = false
align.openParenDefnSite = false
align = more
align.arrowEnumeratorGenerator = true
danglingParenthesis = true
align.tokens = [
{ code = "extends", owner = "Defn.(Class|Trait|Object)" }
]
// http://scalameta.org/scalafmt/#newlines.alwaysBeforeElseAfterCurlyIf
newlines.alwaysBeforeElseAfterCurlyIf = true
rewrite.rules = [
ExpandImportSelectors
RedundantParens
SortModifiers
SortImports
AsciiSortImports
]
verticalMultiline.atDefnSite = false
verticalMultiline.arityThreshold = 2
verticalMultiline.newlineAfterOpenParen = true
includeCurlyBraceInSelectChains = true
optIn.breakChainOnFirstMethodDot = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment