2016-08-26 15:15:48 +00:00
|
|
|
[
|
|
|
|
{elvis, [
|
|
|
|
{config, [
|
|
|
|
#{
|
|
|
|
dirs => ["src", "test"],
|
|
|
|
filter => "*.erl",
|
|
|
|
rules => [
|
|
|
|
{elvis_style, line_length, #{limit => 120, skip_comments => false}},
|
|
|
|
{elvis_style, no_tabs},
|
|
|
|
{elvis_style, no_trailing_whitespace},
|
|
|
|
{elvis_style, macro_module_names},
|
|
|
|
{elvis_style, operator_spaces, #{rules => [{right, ","}, {right, "++"}, {left, "++"}]}},
|
|
|
|
{elvis_style, nesting_level, #{level => 3}},
|
|
|
|
{elvis_style, god_modules, #{limit => 25, ignore => [woody_tests_SUITE]}},
|
|
|
|
{elvis_style, no_if_expression},
|
2019-08-26 09:00:47 +00:00
|
|
|
{elvis_style, invalid_dynamic_call, #{ignore => [woody_client_thrift, woody_event_formatter]}},
|
2016-08-26 15:15:48 +00:00
|
|
|
{elvis_style, used_ignored_variable},
|
|
|
|
{elvis_style, no_behavior_info},
|
2016-12-19 11:11:05 +00:00
|
|
|
{elvis_style, module_naming_convention, #{regex => "^[a-z]([a-z0-9]*_?)*(_SUITE)?$"}},
|
|
|
|
{elvis_style, function_naming_convention, #{regex => "^[a-z]([a-z0-9]*_?)*$"}},
|
2016-08-26 15:15:48 +00:00
|
|
|
{elvis_style, no_spec_with_records},
|
2019-12-03 13:12:17 +00:00
|
|
|
{elvis_style, dont_repeat_yourself, #{min_complexity => 17, ignore => [woody_test_thrift, woody_tests_SUITE]}},
|
2018-11-07 09:54:54 +00:00
|
|
|
{elvis_style, no_debug_call, #{
|
|
|
|
ignore => [
|
2019-06-06 10:11:48 +00:00
|
|
|
woody_ssl_SUITE,
|
2018-11-07 09:54:54 +00:00
|
|
|
woody_tests_SUITE,
|
2019-12-31 09:52:56 +00:00
|
|
|
woody_transport_opts_SUITE,
|
|
|
|
benchmark_memory_pressure
|
2018-11-07 09:54:54 +00:00
|
|
|
]
|
|
|
|
}}
|
2016-08-26 15:15:48 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["src"],
|
|
|
|
filter => "*.app.src",
|
|
|
|
rules => [
|
|
|
|
{elvis_style, line_length, #{limit => 120, skip_comments => false}},
|
|
|
|
{elvis_style, no_tabs},
|
|
|
|
{elvis_style, no_trailing_whitespace}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["."],
|
|
|
|
filter => "Makefile",
|
|
|
|
ruleset => makefiles
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["."],
|
|
|
|
filter => "elvis.config",
|
|
|
|
ruleset => elvis_config
|
|
|
|
},
|
|
|
|
#{
|
|
|
|
dirs => ["."],
|
|
|
|
filter => "rebar.config",
|
|
|
|
rules => [
|
|
|
|
{elvis_style, line_length, #{limit => 120, skip_comments => false}},
|
|
|
|
{elvis_style, no_tabs},
|
|
|
|
{elvis_style, no_trailing_whitespace}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]}
|
|
|
|
]}
|
|
|
|
].
|