-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafix.conf
46 lines (42 loc) · 1.21 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
rules: [
# Standard rules
DisableSyntax
LeakingImplicitClassVal
NoValInForComprehension
RedundantSyntax
# https://github.com/liancheng/scalafix-organize-imports
OrganizeImports,
# https://github.com/typelevel/typelevel-scalafix
TypelevelMapSequence,
TypelevelAs,
TypelevelUnusedShowInterpolator,
TypelevelFs2SyncCompiler
# Disabled because it throws a MissingSymbolException
# TypelevelUnusedIO
]
DisableSyntax.noVars = true
DisableSyntax.noThrows = true
DisableSyntax.noNulls = true
DisableSyntax.noReturns = true
DisableSyntax.noWhileLoops = true
DisableSyntax.noAsInstanceOf = true
DisableSyntax.noIsInstanceOf = true
DisableSyntax.noXml = true
DisableSyntax.noDefaultArgs = true
DisableSyntax.noFinalVal = true
DisableSyntax.noFinalize = true
DisableSyntax.noValPatterns = true
DisableSyntax.noUniversalEquality = true
DisableSyntax.regex: [
{
id = "non-final case class"
pattern = "^\\s{2,}case class"
message = "Extending a case class produces broken classes. See https://stackoverflow.com/a/34562046/1188897"
},
{
id = noPrintln
pattern = "\\W*println\\("
message = "Please log instead of using println"
}
]
ExplicitResultTypes.memberVisibility = [Public, Protected, Private]