2022-04-28 17:59:24 +02:00
|
|
|
[
|
|
|
|
{
|
|
|
|
elvis,
|
|
|
|
[
|
|
|
|
{config,
|
|
|
|
[#{dirs => ["src"],
|
|
|
|
filter => "*.erl",
|
2024-08-21 22:57:36 +02:00
|
|
|
ignore => ['ELDAPv3', eldap_filter_yecc],
|
2022-04-28 17:59:24 +02:00
|
|
|
ruleset => erl_files,
|
2024-08-21 22:57:36 +02:00
|
|
|
rules => [{elvis_text_style, line_length, #{limit => 1000, skip_comments => false}},
|
2022-04-28 17:59:24 +02:00
|
|
|
{elvis_text_style, no_tabs, disable},
|
2024-08-21 22:57:36 +02:00
|
|
|
{elvis_style, atom_naming_convention, disable},
|
|
|
|
{elvis_style, consistent_variable_casing, disable},
|
|
|
|
{elvis_style, dont_repeat_yourself, #{min_complexity => 70}},
|
|
|
|
{elvis_style, export_used_types, disable},
|
|
|
|
{elvis_style, function_naming_convention, disable},
|
|
|
|
{elvis_style, god_modules, #{limit => 300}},
|
|
|
|
{elvis_style, invalid_dynamic_call, disable},
|
|
|
|
{elvis_style, macro_module_names, disable},
|
|
|
|
{elvis_style, macro_names, disable},
|
|
|
|
{elvis_style, max_function_arity, disable}, % #{max_arity => 15}},
|
|
|
|
{elvis_style, nesting_level, disable},
|
|
|
|
{elvis_style, no_author, disable},
|
|
|
|
{elvis_style, no_catch_expressions, disable},
|
2022-04-28 17:59:24 +02:00
|
|
|
{elvis_style, no_debug_call, disable},
|
2024-08-21 22:57:36 +02:00
|
|
|
{elvis_style, no_if_expression, disable},
|
|
|
|
{elvis_style, no_import, disable},
|
|
|
|
{elvis_style, no_match_in_condition, disable},
|
|
|
|
{elvis_style, no_nested_try_catch, disable},
|
|
|
|
{elvis_style, no_single_clause_case, disable},
|
|
|
|
{elvis_style, no_spec_with_records, disable},
|
|
|
|
{elvis_style, no_throw, disable},
|
2022-04-28 17:59:24 +02:00
|
|
|
{elvis_style, operator_spaces, disable},
|
2024-08-21 22:57:36 +02:00
|
|
|
{elvis_style, param_pattern_matching, disable},
|
|
|
|
{elvis_style, private_data_types, disable},
|
|
|
|
{elvis_style, variable_naming_convention, disable}
|
|
|
|
]
|
2022-04-28 17:59:24 +02:00
|
|
|
},
|
2024-08-21 22:57:36 +02:00
|
|
|
|
|
|
|
%#{dirs => ["include"],
|
|
|
|
% filter => "*.hrl",
|
|
|
|
% ruleset => hrl_files},
|
|
|
|
|
2022-04-28 17:59:24 +02:00
|
|
|
#{dirs => ["."],
|
|
|
|
filter => "Makefile.in",
|
|
|
|
ruleset => makefiles,
|
2024-08-21 22:57:36 +02:00
|
|
|
rules => [{elvis_text_style, line_length, #{limit => 400,
|
2022-04-28 17:59:24 +02:00
|
|
|
skip_comments => false}},
|
2024-08-21 22:57:36 +02:00
|
|
|
{elvis_style, dont_repeat_yourself, #{min_complexity => 20}}
|
|
|
|
]
|
2022-04-28 17:59:24 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
].
|
2024-08-21 22:57:36 +02:00
|
|
|
|
|
|
|
%% vim: set filetype=erlang tabstop=8:
|