From c8d866d01a0f9a0ddc5f04423440a6023e623b61 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 28 Apr 2022 17:59:24 +0200 Subject: [PATCH] Add Elvis default configuration --- elvis.config | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 elvis.config diff --git a/elvis.config b/elvis.config new file mode 100644 index 000000000..c679b7e2f --- /dev/null +++ b/elvis.config @@ -0,0 +1,42 @@ +[ + { + elvis, + [ + {config, + [#{dirs => ["src"], + filter => "*.erl", + ruleset => erl_files, + rules => [{elvis_style, line_length, #{limit => 100, + skip_comments => false}}, + {elvis_text_style, no_tabs, disable}, + {elvis_style, no_debug_call, disable}, + {elvis_style, operator_spaces, disable}, + {elvis_style, invalid_dynamic_call, disable}, + {elvis_style, variable_naming_convention, #{ regex => ".*" }}, + {elvis_style, dont_repeat_yourself, #{min_complexity => 20}} + ] + }, + #{dirs => ["."], + filter => "Makefile.in", + ruleset => makefiles, + rules => [{elvis_style, line_length, #{limit => 100, + skip_comments => false}}, + {elvis_style, no_tabs, disable}, + {elvis_style, dont_repeat_yourself, #{min_complexity => 20}} + ] + }, + #{dirs => ["."], + filter => "rebar.config", + ruleset => rebar_config, + rules => [{elvis_style, line_length, #{limit => 100, + skip_comments => false}}, + {elvis_style, no_tabs, disable}, + {elvis_style, dont_repeat_yourself, #{min_complexity => 20}} + ] + } + } + ] + } + ] + } +].