2018-05-30 14:45:42 +00:00
|
|
|
[
|
|
|
|
{elvis, [
|
2022-05-13 08:38:22 +00:00
|
|
|
{verbose, true},
|
2018-05-30 14:45:42 +00:00
|
|
|
{config, [
|
|
|
|
#{
|
2021-02-05 12:37:36 +00:00
|
|
|
dirs => ["src", "test"],
|
2018-05-30 14:45:42 +00:00
|
|
|
filter => "*.erl",
|
2022-05-13 08:38:22 +00:00
|
|
|
ruleset => erl_files,
|
2018-05-30 14:45:42 +00:00
|
|
|
rules => [
|
2022-05-13 08:38:22 +00:00
|
|
|
{elvis_text_style, line_length, #{limit => 120}},
|
|
|
|
{elvis_style, nesting_level, #{level => 3}},
|
|
|
|
{elvis_style, function_naming_convention, #{regex => "^([a-z][a-z0-9]*_?)*$"}},
|
|
|
|
{elvis_style, no_if_expression, disable},
|
|
|
|
{elvis_style, dont_repeat_yourself, #{min_complexity => 30}}
|
2018-05-30 14:45:42 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["."],
|
|
|
|
filter => "Makefile",
|
|
|
|
ruleset => makefiles
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["."],
|
|
|
|
filter => "elvis.config",
|
|
|
|
ruleset => elvis_config
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["."],
|
|
|
|
filter => "rebar.config",
|
2022-05-13 08:38:22 +00:00
|
|
|
ruleset => rebar_config,
|
2018-05-30 14:45:42 +00:00
|
|
|
rules => [
|
2022-05-13 08:38:22 +00:00
|
|
|
{elvis_text_style, line_length, #{limit => 120}},
|
2021-02-05 12:37:36 +00:00
|
|
|
{elvis_text_style, no_tabs},
|
2022-05-13 08:38:22 +00:00
|
|
|
{elvis_text_style, no_trailing_whitespace},
|
|
|
|
%% Temporarily disabled till regex pattern is available
|
|
|
|
{elvis_project, no_deps_master_rebar, disable}
|
2018-05-30 14:45:42 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["src"],
|
|
|
|
filter => "*.app.src",
|
|
|
|
rules => [
|
2022-05-13 08:38:22 +00:00
|
|
|
{elvis_text_style, line_length, #{limit => 120}},
|
2021-02-05 12:37:36 +00:00
|
|
|
{elvis_text_style, no_tabs},
|
|
|
|
{elvis_text_style, no_trailing_whitespace}
|
2018-05-30 14:45:42 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]}
|
|
|
|
]}
|
|
|
|
].
|