-
Notifications
You must be signed in to change notification settings - Fork 9
/
elvis.config
28 lines (28 loc) · 1.11 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
[{elvis,
[{config,
[#{dirs => ["include"],
filter => "*.hrl",
ignore => ["include/kpl_agg_pb.hrl"],
ruleset => hrl_files},
#{dirs => ["src"],
filter => "*.erl",
ruleset => erl_files,
ignore => ["src/kpl_agg_pb.erl"],
rules =>
[{elvis_text_style, line_length, #{skip_comments => whole_line}},
{elvis_style, nesting_level, #{level => 4}},
{elvis_style, dont_repeat_yourself, #{min_complexity => 20}},
{elvis_style, invalid_dynamic_call, disable},
{elvis_style, state_record_and_type, disable},
%% @todo [RTI-14087] Remove this when the records become ODSs
{elvis_style, export_used_types, disable},
{elvis_style, no_debug_call, #{ignore => [erlmld_noisy_wrk, erlmld_runner]}}]},
#{dirs => ["."],
filter => "*rebar.config",
ruleset => rebar_config,
rules =>
%% Elixir deps use git@...
[{elvis_project, protocol_for_deps_rebar, disable}]},
#{dirs => ["."],
filter => "elvis.config",
ruleset => elvis_config}]}]}].