-
Notifications
You must be signed in to change notification settings - Fork 38
Tweak rebar.config (update deps then fixed issue warnings)
#120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 15 commits
7d89236
6f9d28e
ac4aaec
4f7d2a7
752d90d
bdccf31
e3aa3db
86ef1a7
3908309
d82dcd9
4a70eaa
b1f60ca
78e5efa
00df5b4
bd8806c
4e9012f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ]} | ||
| ]} | ||
| ]. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -472,7 +472,8 @@ sendfile_range() -> | |
| ?assertMatch(206, status(Response)), | ||
| ?assertHeadersEqual([{<<"connection">>, <<"Keep-Alive">>}, | ||
| {<<"content-length">>, <<"400">>}, | ||
| {<<"Content-Range">>, iolist_to_binary(["bytes 300-699/", integer_to_binary(Size)])}], | ||
| {<<"Content-Range">>, | ||
| iolist_to_binary(["bytes 300-699/", integer_to_binary(Size)])}], | ||
| headers(Response)), | ||
| ?assertEqual(Expected, body(Response)). | ||
|
|
||
|
|
@@ -735,7 +736,8 @@ register_test() -> | |
| ok. | ||
|
|
||
| invalid_callback_test() -> | ||
| case catch elli:start_link([{callback, elli}]) of | ||
| E -> | ||
| ?assertMatch(invalid_callback, E) | ||
| try | ||
| elli:start_link([{callback, elli}]) | ||
| catch throw:E -> | ||
|
||
| ?assertMatch(invalid_callback, E) | ||
paulo-ferraz-oliveira marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| end. | ||
Uh oh!
There was an error while loading. Please reload this page.