Skip to content

Commit

Permalink
Prepare for what's coming
Browse files Browse the repository at this point in the history
This is a copy from elvis.config from ongoing branch
fix/rebar.config
  • Loading branch information
paulo-ferraz-oliveira committed Jun 13, 2024
1 parent fcfa101 commit b5171a0
Showing 1 changed file with 23 additions and 44 deletions.
67 changes: 23 additions & 44 deletions elvis.config
Original file line number Diff line number Diff line change
@@ -1,48 +1,27 @@
[
{
elvis,
[
{config,
[#{dirs => [
"src"
%% TODO: "test"
],
filter => "*.erl",
rules => [
{elvis_style, no_tabs},
{elvis_style, no_trailing_whitespace},
{elvis_style, no_if_expression},
{elvis_style, no_nested_try_catch},
{elvis_style, invalid_dynamic_call,
#{ignore => [
elli,
elli_http,
elli_middleware,
elli_test
]}},
{elvis_style, used_ignored_variable},
{elvis_style, no_behavior_info},
{elvis_style, state_record_and_type},
{elvis_style, no_spec_with_records},
{elvis_style, dont_repeat_yourself},
{elvis_style, no_debug_call}
],
ruleset => erl_files
},
#{dirs => ["."],
filter => "Makefile",
ruleset => makefiles
},
#{dirs => ["."],
filter => "rebar.config",
{elvis, [
{config, [
#{
dirs => ["src/**", "test/**"],
filter => "*.erl",
ruleset => erl_files,
rules => [
{elvis_style, operator_spaces, disable},
{elvis_style, invalid_dynamic_call, disable},
{elvis_style, dont_repeat_yourself, disable},
{elvis_style, no_throw, disable}
]
},
#{
dirs => ["."],
filter => "rebar.config",
ruleset => rebar_config
},
#{dirs => ["."],
filter => "elvis.config",
},
#{
dirs => ["."],
filter => "elvis.config",
ruleset => elvis_config
}
]
}
]
}
}
]}
]}
].

0 comments on commit b5171a0

Please sign in to comment.