|
1 | 1 | [
|
2 |
| - { |
3 |
| - elvis, |
4 |
| - [ |
5 |
| - {config, |
6 |
| - [#{dirs => [ |
7 |
| - "src" |
8 |
| - %% TODO: "test" |
9 |
| - ], |
10 |
| - filter => "*.erl", |
11 |
| - rules => [ |
12 |
| - {elvis_style, no_tabs}, |
13 |
| - {elvis_style, no_trailing_whitespace}, |
14 |
| - {elvis_style, no_if_expression}, |
15 |
| - {elvis_style, no_nested_try_catch}, |
16 |
| - {elvis_style, invalid_dynamic_call, |
17 |
| - #{ignore => [ |
18 |
| - elli, |
19 |
| - elli_http, |
20 |
| - elli_middleware, |
21 |
| - elli_test |
22 |
| - ]}}, |
23 |
| - {elvis_style, used_ignored_variable}, |
24 |
| - {elvis_style, no_behavior_info}, |
25 |
| - {elvis_style, state_record_and_type}, |
26 |
| - {elvis_style, no_spec_with_records}, |
27 |
| - {elvis_style, dont_repeat_yourself}, |
28 |
| - {elvis_style, no_debug_call} |
29 |
| - ], |
30 |
| - ruleset => erl_files |
31 |
| - }, |
32 |
| - #{dirs => ["."], |
33 |
| - filter => "Makefile", |
34 |
| - ruleset => makefiles |
35 |
| - }, |
36 |
| - #{dirs => ["."], |
37 |
| - filter => "rebar.config", |
| 2 | + {elvis, [ |
| 3 | + {config, [ |
| 4 | + #{ |
| 5 | + dirs => ["src/**", "test/**"], |
| 6 | + filter => "*.erl", |
| 7 | + ruleset => erl_files, |
| 8 | + rules => [ |
| 9 | + {elvis_style, operator_spaces, disable}, |
| 10 | + {elvis_style, invalid_dynamic_call, disable}, |
| 11 | + {elvis_style, dont_repeat_yourself, disable}, |
| 12 | + {elvis_style, no_throw, disable} |
| 13 | + ] |
| 14 | + }, |
| 15 | + #{ |
| 16 | + dirs => ["."], |
| 17 | + filter => "rebar.config", |
38 | 18 | ruleset => rebar_config
|
39 |
| - }, |
40 |
| - #{dirs => ["."], |
41 |
| - filter => "elvis.config", |
| 19 | + }, |
| 20 | + #{ |
| 21 | + dirs => ["."], |
| 22 | + filter => "elvis.config", |
42 | 23 | ruleset => elvis_config
|
43 |
| - } |
44 |
| - ] |
45 |
| - } |
46 |
| - ] |
47 |
| - } |
| 24 | + } |
| 25 | + ]} |
| 26 | + ]} |
48 | 27 | ].
|
0 commit comments