forked from esl/MongooseIM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elvis.config
38 lines (36 loc) · 1.36 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
[
{
elvis,
[
{config,
[#{dirs => ["src"],
filter => "*.erl",
ruleset => erl_files,
rules => [{elvis_style, line_length, #{limit => 100,
skip_comments => false}},
{elvis_style, dont_repeat_yourself, #{min_complexity => 20}}
]
},
#{dirs => ["test", "test.disabled/ejabberd_tests/tests"],
filter => "*.erl",
ruleset => erl_files,
rules => [{elvis_style, line_length, #{limit => 100,
skip_comments => false}},
{elvis_style, invalid_dynamic_call, disable},
{elvis_style, no_debug_call, disable},
{elvis_style, no_spec_with_records, disable},
{elvis_style, dont_repeat_yourself, #{min_complexity => 20}},
%% Allow usage of macros like "?_assert_equal_extra".
{elvis_style, used_ignored_variable, disable},
%% Allow usage of ?assertMatch and similar macros, since after expanding they
%% result in use of variables like __X and __V that wouldn't be permitted by
%% default regex.
{elvis_style, variable_naming_convention, #{regex => "^(_?[A-Z][0-9a-zA-Z_]*)$"}},
{elvis_style, macro_names, disable}
]
}
]
}
]
}
].