File: elvis.config

package info (click to toggle)
ejabberd 24.12-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,740 kB
  • sloc: erlang: 111,927; sh: 4,004; sql: 3,551; perl: 832; makefile: 542; python: 48; javascript: 34
file content (58 lines) | stat: -rw-r--r-- 2,370 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[
 {
  elvis,
  [
   {config,
    [#{dirs => ["src"],
       filter => "*.erl",
       ignore => ['ELDAPv3', eldap_filter_yecc],
       ruleset => erl_files,
       rules => [{elvis_text_style, line_length, #{limit => 1000, skip_comments => false}},
                 {elvis_text_style, no_tabs, disable},
                 {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},
                 {elvis_style, no_debug_call, disable},
                 {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},
                 {elvis_style, operator_spaces, disable},
                 {elvis_style, param_pattern_matching, disable},
                 {elvis_style, private_data_types, disable},
                 {elvis_style, variable_naming_convention, disable}
                ]
      },

     %#{dirs    => ["include"],
     %  filter  => "*.hrl",
     %  ruleset => hrl_files},

     #{dirs => ["."],
       filter => "Makefile.in",
       ruleset => makefiles,
       rules => [{elvis_text_style, line_length, #{limit => 400,
                                              skip_comments => false}},
                 {elvis_style, dont_repeat_yourself, #{min_complexity => 20}}
                ]
      }
    ]
   }
  ]
 }
].

%% vim: set filetype=erlang tabstop=8: