-
Notifications
You must be signed in to change notification settings - Fork 5
/
elvis.config
54 lines (54 loc) · 1.48 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
[
{
elvis,
[
{config,
[#{dirs => [
"src"
],
filter => "*.erl",
rules => [
{elvis_style, line_length,
#{limit => 90, skip_comments => false}},
{elvis_style, invalid_dynamic_call,
#{ignore => [
oc_reporter_prometheus %% dynamic metric type
]}},
{elvis_style, god_modules, #{limit => 25}}
],
ruleset => erl_files
},
#{dirs => [
"test/eunit"
],
filter => "*.erl",
rules => [
{elvis_style, line_length,
#{limit => 90}},
{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
}
]
}
]
}
].