-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathelvis.config
36 lines (36 loc) · 972 Bytes
/
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
% -*- mode: erlang -*-
[
{
elvis,
[
{config,
[
#{dirs => ["src", "test", "test/*"],
filter => "*.erl",
ruleset => erl_files,
rules => [
{elvis_style, dont_repeat_yourself, #{min_complexity => 30}},
{elvis_style, function_naming_convention, #{regex => "^([a-z_][0-9a-zA-Z_]*)$"}},
{elvis_style, module_naming_convention, #{regex => "^([a-z_][0-9a-zA-Z_]*)$"}},
{elvis_style, atom_naming_convention, #{regex => "^([a-z_][0-9a-zA-Z_]*)$"}},
{elvis_style, no_debug_call, disable},
{elvis_style, no_if_expression, disable}
]
},
#{dirs => ["include"],
filter => "*.hrl",
ruleset => hrl_files
},
#{dirs => ["."],
filter => "rebar.config",
ruleset => rebar_config
},
#{dirs => ["."],
filter => "elvis.config",
ruleset => elvis_config
}
]
}
]
}
].