-
Notifications
You must be signed in to change notification settings - Fork 16
/
elvis.config
39 lines (39 loc) · 1.63 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
% -*- mode: erlang; -*- vim: set ft=erlang:
[{elvis, [
{config, [
#{ dirs => ["src/**"],
filter => "*.erl",
ruleset => erl_files,
rules => [{elvis_style, atom_naming_convention, #{
ignore => [locus_mmdb,
locus_mmdb_data_codec]
}},
{elvis_style, dont_repeat_yourself, #{
ignore => [locus_mmdb_tree,
locus_util]
}},
{elvis_style, macro_names, disable},
{elvis_style, no_if_expression, disable},
{elvis_style, no_throw, #{
ignore => [locus_custom_fetcher,
locus_mmdb_data_codec,
locus_shared_bitarray]
}} ]},
#{ dirs => ["test/**"],
filter => "*.erl",
ruleset => erl_files,
rules => [{elvis_style, dont_repeat_yourself, disable},
{elvis_style, invalid_dynamic_call, disable},
{elvis_style, no_debug_call, disable},
{elvis_style, no_nested_try_catch, disable},
{elvis_style, used_ignored_variable, disable},
{elvis_text_style, line_length, #{ limit => 100 }}] },
#{ dirs => ["."],
filter => "rebar.config",
ruleset => rebar_config },
#{ dirs => ["."],
filter => "elvis.config",
ruleset => elvis_config }
]},
{verbose, false}
]}].