mirror of
https://github.com/valitydev/woody_erlang.git
synced 2024-11-06 02:15:19 +00:00
e615c85d70
* Add compex term formatting microbenchmark * Format FP numbers more neatly * Provide fast-path verbatim term formatter * Add memory pressure benchmark runner * Switch to rebar3_bench 0.2.1 package * Employ assert macros throughout main ct suite
64 lines
2.6 KiB
Plaintext
64 lines
2.6 KiB
Plaintext
[
|
|
{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},
|
|
{elvis_style, invalid_dynamic_call, #{ignore => [woody_client_thrift, woody_event_formatter]}},
|
|
{elvis_style, used_ignored_variable},
|
|
{elvis_style, no_behavior_info},
|
|
{elvis_style, module_naming_convention, #{regex => "^[a-z]([a-z0-9]*_?)*(_SUITE)?$"}},
|
|
{elvis_style, function_naming_convention, #{regex => "^[a-z]([a-z0-9]*_?)*$"}},
|
|
{elvis_style, no_spec_with_records},
|
|
{elvis_style, dont_repeat_yourself, #{min_complexity => 17, ignore => [woody_test_thrift, woody_tests_SUITE]}},
|
|
{elvis_style, no_debug_call, #{
|
|
ignore => [
|
|
woody_ssl_SUITE,
|
|
woody_tests_SUITE,
|
|
woody_transport_opts_SUITE,
|
|
benchmark_memory_pressure
|
|
]
|
|
}}
|
|
]
|
|
},
|
|
#{
|
|
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}
|
|
]
|
|
}
|
|
]}
|
|
]}
|
|
].
|