2017-10-25 16:49:20 +00:00
|
|
|
[
|
|
|
|
{elvis, [
|
2022-06-20 08:17:22 +00:00
|
|
|
{verbose, true},
|
2017-10-25 16:49:20 +00:00
|
|
|
{config, [
|
|
|
|
#{
|
2022-06-20 08:17:22 +00:00
|
|
|
dirs => ["src", "include", "test"],
|
2017-10-25 16:49:20 +00:00
|
|
|
filter => "*.erl",
|
2022-06-20 08:17:22 +00:00
|
|
|
ruleset => erl_files,
|
2017-10-25 16:49:20 +00:00
|
|
|
rules => [
|
2022-06-20 08:17:22 +00:00
|
|
|
{elvis_text_style, line_length, #{limit => 120}},
|
2017-10-25 16:49:20 +00:00
|
|
|
{elvis_style, nesting_level, #{level => 3}},
|
|
|
|
{elvis_style, function_naming_convention, #{regex => "^([a-z][a-z0-9]*_?)*$"}},
|
2022-06-20 08:17:22 +00:00
|
|
|
{elvis_style, no_if_expression, disable},
|
|
|
|
{elvis_style, god_modules, #{
|
|
|
|
ignore => [
|
|
|
|
% Contains ALL the API this library provides
|
|
|
|
dmt_client
|
|
|
|
]
|
|
|
|
}}
|
2017-10-25 16:49:20 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["."],
|
|
|
|
filter => "Makefile",
|
|
|
|
ruleset => makefiles
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["."],
|
|
|
|
filter => "elvis.config",
|
|
|
|
ruleset => elvis_config
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["."],
|
|
|
|
filter => "rebar.config",
|
2022-06-20 08:17:22 +00:00
|
|
|
ruleset => rebar_config,
|
2017-10-25 16:49:20 +00:00
|
|
|
rules => [
|
2022-06-20 08:17:22 +00:00
|
|
|
{elvis_text_style, line_length, #{limit => 120}},
|
2021-06-03 10:35:24 +00:00
|
|
|
{elvis_text_style, no_tabs},
|
2022-06-20 08:17:22 +00:00
|
|
|
{elvis_text_style, no_trailing_whitespace},
|
|
|
|
%% Temporarily disabled till regex pattern is available
|
|
|
|
{elvis_project, no_deps_master_rebar, disable}
|
2017-10-25 16:49:20 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["src"],
|
|
|
|
filter => "*.app.src",
|
|
|
|
rules => [
|
2022-06-20 08:17:22 +00:00
|
|
|
{elvis_text_style, line_length, #{limit => 120}},
|
2021-06-03 10:35:24 +00:00
|
|
|
{elvis_text_style, no_tabs},
|
|
|
|
{elvis_text_style, no_trailing_whitespace}
|
2017-10-25 16:49:20 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]}
|
|
|
|
]}
|
|
|
|
].
|