forked from rorygraves/ScalaClean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scalafix.conf
86 lines (86 loc) · 1.82 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
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
rules = [
DisableSyntax
]
DisableSyntax.noReturns = true
DisableSyntax.regex = [
{
id = "todo"
pattern = "(TODO\\s*[^(]|FIXME)"
message = "Must be in format TODO (<jira url>)"
}
{
id = "ignore"
pattern = "@Ignore\\s*[^(]"
message = "Must be in format: '@Ignore(<jira url>)'"
}
{
id = "scalaz"
pattern = "scalaz"
message = "scalaz is prohibited"
}
{
id = "now"
pattern = "Instant.now"
message = "Don't use Instant.now"
}
{
id = "maxPermSize"
pattern = "(-XX:MaxPermSize|-XX:PermSize)"
message = "MaxPermSize and PermSize are deprecated"
}
{
id = "file-headers"
pattern = "(\\* Created by [a-z]+ on|Copyright .* KEYWORD|\\@author)"
message = "No file headers"
}
{
id = "logging"
pattern = "(println|isDebugEnabled)"
message = "Use a logger"
}
{
id = "banned-apis"
pattern = "(KEYWORD.persist|KEYWORD.unsafe|KEYWORD.upsert)"
message = "Don't use banned APIs"
}
{
id = "currency-apis"
pattern = "OldCurrencyUnit"
message = "Use CurrencyUnit"
}
{
id = "currency-string"
pattern = "(ccy: String|ccy: Option\\[String\\]|currency: String|Ccy: String|Ccy: Option\\[String\\])"
message = "Use CurrencyUnit"
}
{
id = "methods"
pattern = "def [A-Z]"
message = "Use camelCase"
}
{
id = "async-wrappers"
pattern = "(async[(]|aseq)"
message = "Use collection.apar"
}
{
id = "thread-blocking"
pattern = "Thread.sleep"
message = "Avoid blocking"
}
{
id = "import-statements"
pattern = "import o.p.[a-zA-Z]+"
message = "Use import o.p._"
}
{
id = "javaconversions"
pattern = "scala.collection.JavaConversions"
message = "Java conversions is prohibited"
}
{
id = "backticks"
pattern = "`.*`"
message = "Backtick escaping"
}
]