-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathelvis.config
48 lines (46 loc) · 1.62 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
40
41
42
43
44
45
46
47
48
[
{
elvis,
[
{config,
[#{dirs => [ "src", "test" ],
filter => "*.erl",
ruleset => erl_files,
rules => [ {elvis_style, dont_repeat_yourself, disable},
{elvis_style, god_modules,
#{ignore => [ kache ]}},
{elvis_style, invalid_dynamic_call},
{elvis_style, no_debug_call, disable},
{elvis_style, line_length, #{limit => 90}},
{elvis_style, macro_module_names, disable},
{elvis_style, macro_names, disable},
{elvis_style, no_if_expression, disable},
{elvis_style, operator_spaces, disable},
{elvis_style, no_behavior_info, disable},
{elvis_style, module_naming_convention, disable},
{elvis_style, nesting_level, #{level => 4}},
{elvis_style, function_naming_convention,
#{ignore => [ ],
regex => "^([a-z][_a-z0-9]*_?)*$"
}},
{elvis_style, variable_naming_convention,
#{ignore => [ ],
regex => "^(_?[A-Z][0-9a-zA-Z]*|FUNCTION_(ARITY|NAME)|__[A-Z])$"
}},
{elvis_style, no_tabs}
]
},
#{dirs => ["."],
filter => "rebar.config",
rules => [ {elvis_project, protocol_for_deps_rebar, disable} ],
ruleset => rebar_config
},
#{dirs => ["."],
filter => "elvis.config",
ruleset => elvis_config
}
]
}
]
}
].