-
Notifications
You must be signed in to change notification settings - Fork 0
/
elvis.config
34 lines (34 loc) · 1.42 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
[{elvis, [
{config, [
#{ dirs => ["src/**"]
, filter => "*.erl"
, ruleset => erl_files
% these are not enforced by default, so are added here for completeness
, rules => [{elvis_style, max_module_length, #{}}
, {elvis_style, no_common_caveats_call, #{}}
, {elvis_style, atom_naming_convention, #{ regex => "^[a-z]+_?([a-z0-9]*_?)*$" }}
, {elvis_style, function_naming_convention, #{ regex => "^[a-z]+_?([a-z0-9]*_?)*$" }}
]
}
, #{ dirs => ["test/**"]
, filter => "*.erl"
, ruleset => test_files
% these are not enforced by default, so are added here for completeness
, rules => [{elvis_style, max_module_length, #{}}
, {elvis_style, no_common_caveats_call, #{}}
, {elvis_style, atom_naming_convention, #{ regex => "^[a-z]+_?([a-z0-9]*_?)*$" }}
, {elvis_style, function_naming_convention, #{ regex => "^[a-z]+_?([a-z0-9]*_?)*$" }}
, {elvis_style, dont_repeat_yourself, #{ min_complexity => 34 }}
]
}
, #{ dirs => ["."]
, filter => "rebar.config"
, ruleset => rebar_config
, rules => [] }
, #{ dirs => ["."]
, filter => "elvis.config"
, ruleset => elvis_config
, rules => [] }
]}
, {verbose, true}
]}].