mirror of
https://github.com/valitydev/fistful-server.git
synced 2024-11-06 02:35:18 +00:00
74 lines
3.2 KiB
Plaintext
74 lines
3.2 KiB
Plaintext
[
|
|
{elvis, [
|
|
{config, [
|
|
#{
|
|
dirs => ["apps/*/**"],
|
|
filter => "*.erl",
|
|
ignore => ["apps/swag_.*", ".+_SUITE.erl"],
|
|
rules => [
|
|
{elvis_text_style, line_length, #{limit => 120, skip_comments => false}},
|
|
{elvis_text_style, no_tabs},
|
|
{elvis_text_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 => 30, ignore => [wapi_wallet_ff_backend]}},
|
|
{elvis_style, no_if_expression},
|
|
{elvis_style, invalid_dynamic_call, #{ignore => [ff_ct_provider_handler]}},
|
|
{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, state_record_and_type, #{ignore => [machinery_gensrv_backend]}},
|
|
{elvis_style, no_spec_with_records},
|
|
{elvis_style, dont_repeat_yourself, #{
|
|
min_complexity => 32,
|
|
ignore => [
|
|
ff_source_machinery_schema,
|
|
ff_deposit_machinery_schema,
|
|
ff_destination_machinery_schema,
|
|
ff_identity_machinery_schema,
|
|
ff_p2p_session_machinery_schema,
|
|
ff_p2p_transfer_machinery_schema,
|
|
ff_wallet_machinery_schema,
|
|
ff_withdrawal_machinery_schema,
|
|
ff_withdrawal_session_machinery_schema
|
|
]
|
|
}},
|
|
{elvis_style, no_debug_call, #{}}
|
|
]
|
|
},
|
|
#{
|
|
dirs => ["."],
|
|
filter => "Makefile",
|
|
ruleset => makefiles
|
|
},
|
|
#{
|
|
dirs => ["."],
|
|
filter => "elvis.config",
|
|
ruleset => elvis_config
|
|
},
|
|
#{
|
|
dirs => [".", "apps/*/*"],
|
|
filter => "rebar.config",
|
|
ignore => ["apps/swag_*"],
|
|
rules => [
|
|
{elvis_text_style, line_length, #{limit => 120, skip_comments => false}},
|
|
{elvis_text_style, no_tabs},
|
|
{elvis_text_style, no_trailing_whitespace}
|
|
]
|
|
},
|
|
#{
|
|
dirs => ["apps/**"],
|
|
filter => "*.app.src",
|
|
ignore => ["apps/swag_*"],
|
|
rules => [
|
|
{elvis_text_style, line_length, #{limit => 120, skip_comments => false}},
|
|
{elvis_text_style, no_tabs},
|
|
{elvis_text_style, no_trailing_whitespace}
|
|
]
|
|
}
|
|
]}
|
|
]}
|
|
].
|