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}} + ] + } + } + ] + } + ] + } +].