-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maciej Kowalski
committed
May 10, 2018
1 parent
17221f7
commit a7db8b8
Showing
25 changed files
with
1,649 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# | ||
# See http://scalameta.org/scalafmt/#Configuration for details | ||
# | ||
project { | ||
includeFilters = [ | ||
".*.\\.scala$" | ||
".*\\..sbt$" | ||
] | ||
} | ||
|
||
maxColumn = 120 | ||
|
||
# Vertical alignment, options: none, some, more | ||
# | ||
# This awkward, self-contradictory, configuration ensures that only | ||
# the common sbt tokens get aligned, and not "production" code. | ||
# | ||
align = none | ||
align { | ||
openParenCallSite = false | ||
openParenDefnSite = false | ||
tokens = ["%", ":=", "~="] | ||
} | ||
|
||
# If true, the margin character | is aligned with the opening triple quote string literals | ||
assumeStandardLibraryStripMargin = true | ||
|
||
#From scalafmt website: | ||
#see: http://scalameta.org/scalafmt/#includeCurlyBraceInSelectChains | ||
includeCurlyBraceInSelectChains = false | ||
|
||
continuationIndent { | ||
callSite = 2 | ||
defnSite = 2 | ||
extendSite = 4 | ||
} | ||
|
||
danglingParentheses = false | ||
|
||
|
||
newlines { | ||
alwaysBeforeTopLevelStatements = true | ||
sometimesBeforeColonInMethodReturnType = true | ||
penalizeSingleSelectMultiArgList = false | ||
alwaysBeforeElseAfterCurlyIf = false | ||
neverInResultType = false | ||
} | ||
|
||
spaces { | ||
afterKeywordBeforeParen = true | ||
} | ||
|
||
binPack { | ||
parentConstructors = true | ||
literalArgumentLists = true | ||
} | ||
|
||
optIn { | ||
breaksInsideChains = false | ||
breakChainOnFirstMethodDot = true | ||
configStyleArguments = true | ||
} | ||
|
||
runner { | ||
optimizer { | ||
# Set to -1 to disable. Number of characters needed to trigger "config-style" formatting | ||
# see: http://scalameta.org/scalafmt/#runner.optimizer.forceConfigStyleOnOffset | ||
forceConfigStyleOnOffset = 150 | ||
|
||
# minimum number of func arguments before config-style (look at top of file) is enabled | ||
forceConfigStyleMinArgCount = 2 | ||
} | ||
} | ||
|
||
rewrite { | ||
rules = [ | ||
SortImports | ||
# if your for has more than one single <- then it gets transformed into a multit-line curly brace one | ||
# PreferCurlyFors | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.13.15 | ||
sbt.version=1.1.4 |
Oops, something went wrong.