forked from eaplatanios/tensorflow_scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafmt.conf
123 lines (107 loc) · 3.94 KB
/
.scalafmt.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# General
version = "1.6.0-RC4"
style = defaultWithAlign
maxColumn = 120
docstrings = ScalaDoc
# Indentation and Alignment
continuationIndent.callSite = 2
continuationIndent.defnSite = 4
continuationIndent.extendSite = 4
indentOperator = spray
indentOperator.exclude = "^(::|&&|\\|)$"
align = none
align.ifWhileOpenParen = true
align.openParenCallSite = false
align.openParenDefnSite = false
align.tokens = [
{code = ":", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))"},
{code = "←", owner = "Enumerator.Generator"},
{code = "%", owner = "Term.ApplyInfix"},
{code = "→", owner = "Term.ApplyInfix"},
{code = "=", owner = "(numerator.Val|Defn.(Va(l|r)|Def|Type))"},
{code = "<-", owner = "Enumerator.Generator"},
{code = "//", owner = ".*"},
{code = "->", owner = "Term.ApplyInfix"},
{code = "%%", owner = "Term.ApplyInfix"},
{code = "}", owner = Template},
{code = "=>", owner = Case}]
align.arrowEnumeratorGenerator = true
align.tokenCategory.Equals = Assign
align.tokenCategory.LeftArrow = Assign
spaces.beforeContextBoundColon = never
spaces.afterTripleEquals = false
spaces.inImportCurlyBraces = false
spaces.inParentheses = false
spaces.neverAroundInfixTypes = []
spaces.afterKeywordBeforeParen = true
spaces.inByNameTypes = true
spaces.afterSymbolicDefs = false
newlines.neverInResultType = false
newlines.neverBeforeJsNative = false
newlines.sometimesBeforeColonInMethodReturnType = true
newlines.penalizeSingleSelectMultiArgList = false
newlines.alwaysBeforeCurlyBraceLambdaParams = false
newlines.alwaysBeforeTopLevelStatements = false
newlines.afterCurlyLambda = never
newlines.afterImplicitKWInVerticalMultiline = true
newlines.beforeImplicitKWInVerticalMultiline = false
newlines.alwaysBeforeElseAfterCurlyIf = false
newlines.alwaysBeforeMultilineDef = true
verticalMultilineAtDefinitionSite = false
verticalMultilineAtDefinitionSiteArityThreshold = 100
verticalMultiline.atDefnSite = false
verticalMultiline.arityThreshold = 100
verticalMultiline.newlineAfterImplicitKW = true
verticalMultiline.newlineBeforeImplicitKW = false
verticalMultiline.newlineAfterOpenParen = true
verticalMultiline.excludeDanglingParens = []
# Rewrite Rules
rewrite.rules = [RedundantParens, SortImports, SortModifiers]
rewrite.redundantBraces.methodBodies = true
rewrite.redundantBraces.includeUnitMethods = true
rewrite.redundantBraces.maxLines = 100
rewrite.redundantBraces.stringInterpolation = false
rewrite.redundantBraces.generalExpressions = false
rewrite.sortModifiers.order = [implicit, final, sealed, abstract, override, private, protected, lazy]
# Miscellaneous
project.git = true
lineEndings = unix
encoding = "UTF-8"
binPack.unsafeCallSite = false
binPack.unsafeDefnSite = false
binPack.parentConstructors = false
binPack.literalArgumentLists = true
binPack.literalsMinArgCount = 5
binPack.literalsInclude = [".*"]
binPack.literalsExclude = [String, "Term.Name"]
optIn.configStyleArguments = true
optIn.breaksInsideChains = true
optIn.breakChainOnFirstMethodDot = false
optIn.selfAnnotationNewline = true
optIn.annotationNewlines = true
optIn.blankLineBeforeDocstring = false
indentYieldKeyword = true
importSelectors = nobinpack
unindentTopLevelOperators = true
includeCurlyBraceInSelectChains = true
assumeStandardLibraryStripMargin = false
danglingParentheses = true
poorMansTrailingCommasInConfigStyle = false
trailingCommas = never
onTestFailure = ""
runner.debug = false
runner.optimizer.dequeueOnNewStatements = true
runner.optimizer.escapeInPathologicalCases = true
runner.optimizer.maxVisitsPerToken = 513
runner.optimizer.maxEscapes = 16
runner.optimizer.maxDepth = 100
runner.optimizer.acceptOptimalAtHints = true
runner.optimizer.disableOptimizationsInsideSensitiveAreas = true
runner.optimizer.pruneSlowStates = true
runner.optimizer.recurseOnBlocks = true
runner.optimizer.forceConfigStyleOnOffset = 150
runner.optimizer.forceConfigStyleMinArgCount = 2
runner.maxStateVisits = 1000000
runner.dialect = "scala212"
runner.ignoreWarnings = false
runner.fatalWarnings = false