-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathelvis.config
63 lines (63 loc) · 1.86 KB
/
elvis.config
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
[
{
elvis,
[
{config,
[#{dirs => [
"src"
],
filter => "*.erl",
rules => [
{elvis_style, line_length,
#{limit => 80}},
{elvis_style, invalid_dynamic_call,
#{ignore => [
prometheus_http_impl,
prometheus_httpd_config
]}},
{elvis_style, nesting_level, #{level => 5}},
{elvis_style, god_modules, #{limit => 40}},
{elvis_style, dont_repeat_yourself, #{min_complexity => 20}}
],
ruleset => erl_files
},
#{dirs => [
"test/eunit",
"test/ct"
],
filter => "*.erl",
rules => [
{elvis_style, line_length,
#{limit => 90}},
{elvis_style, no_debug_call,
#{ignore => [],
debug_functions => []}},
{elvis_style, invalid_dynamic_call,
#{ignore => [
]}},
{elvis_style, god_modules, #{limit => 40}},
%% looks like eunit generates underscored vars
{elvis_style, variable_naming_convention,
#{regex => "^([A-Z_][0-9a-zA-Z_]*)$"}},
{elvis_style, dont_repeat_yourself,
#{min_complexity => 200}}
],
ruleset => erl_files
},
#{dirs => ["."],
filter => "Makefile",
ruleset => makefiles
},
#{dirs => ["."],
filter => "rebar.config",
ruleset => rebar_config
},
#{dirs => ["."],
filter => "elvis.config",
ruleset => elvis_config
}
]
}
]
}
].