forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheastwood-config.clj
97 lines (80 loc) · 3.52 KB
/
eastwood-config.clj
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
(disable-warning
{:linter :suspicious-expression
:for-macro 'clojure.core/and
:if-inside-macroexpansion-of #{'clojure.core.match/match}
:within-depth 50
:reason (str "By default, eastwood only allows a depth of up to 13 when ignoring single-arg `and` "
"in `core/match` macro expansions; some of our `mbql.u/match` macros exceed that depth.")})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.test.data.users/user-http-request
:arglists-for-linting '([& args])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.test/user-http-request
:arglists-for-linting '([& args])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.test.fixtures/initialize
:arglists-for-linting '([& what])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.test.initialize/initialize-if-needed!
:arglists-for-linting '([& what])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.test/initialize-if-needed!
:arglists-for-linting '([& what])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.query-processor-test/normal-drivers-with-feature
:arglists-for-linting '([feature & more-features])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.test/normal-drivers-with-feature
:arglists-for-linting '([feature & more-features])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.query-processor-test/normal-drivers-without-feature
:arglists-for-linting '([feature & more-features])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.test/normal-drivers-without-feature
:arglists-for-linting '([feature & more-features])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.http-client/client
:arglists-for-linting '([& args])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.test/client
:arglists-for-linting '([& args])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.http-client/client-full-response
:arglists-for-linting '([& args])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.test/client-full-response
:arglists-for-linting '([& args])})
(disable-warning
{:linter :wrong-arity
:function-symbol 'metabase.test.data.sql/qualified-name-components
:arglists-for-linting '([driver database-name & args])})
(disable-warning
{:linter :suspicious-expression
:for-macro 'clojure.core/let
:if-inside-macroexpansion-of #{'metabase.models.collection-test/with-collection-in-location}
:within-depth 10})
(disable-warning
{:linter :suspicious-expression
:for-macro 'clojure.core/let
:if-inside-macroexpansion-of '#{metabase.test/with-temp
metabase.test/with-temp*
toucan.util.test/with-temp
toucan.util.test/with-temp*}
:within-depth 10})
(disable-warning
{:linter :constant-test
:if-inside-macroexpansion-of #{'clojure.java.jdbc/with-db-connection}
:within-depth 5})