-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.scalafix.conf
30 lines (29 loc) · 1.32 KB
/
.scalafix.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
rules = [
DisableSyntax, # Disables some constructs that make no semantic sense like `final val`
ProcedureSyntax, # Procedure syntax in Scala is always discouraged
NoValInForComprehension, # `val` in for comprehensions are deprecated and shouldn't be used
NoAutoTupling, # Avoids the automatic tupling in parameters
RemoveUnused, # Removes unused elements
LeakingImplicitClassVal, # This rule adds the private access modifier on the field of implicit value classes in order to prevent direct access.
OrganizeImports # Organizes imports and removes unused ones
]
ExplicitResultTypes.memberKind = [Def, Val, Var]
ExplicitResultTypes.memberVisibility = [Public, Protected]
ExplicitResultTypes.skipSimpleDefinitions = ['Lit', 'Term.New', 'Term.Ref']
ExplicitResultTypes.fatalWarnings = true
DisableSyntax.noReturns = true
DisableSyntax.noWhileLoops = true
DisableSyntax.noXml = true
DisableSyntax.noFinalVal = true
DisableSyntax.noFinalize = true
DisableSyntax.noValPatterns = true
RemoveUnused.imports = false # The plugin organize imports removes unused and clashes with this
OrganizeImports {
groupedImports = Merge
groups = [
"*"
"java."
"scala."
"re:javax?\\."
] # Reasoning for this config is to keep the more business related imports at the top, while language imports are on the bottom
}