Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc_rules/elvis_style/no_common_caveats_call.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ results in clearer, faster, and more maintainable code.
, {gen_event, call, 3}
]`

`{gen_statem, call, 2}`, `{gen_server, call, 2}`, and `{gen_event, call, 3}` were added in
[4.1.0](https://github.com/inaka/elvis_core/releases/tag/4.1.0)

## Example configuration

```erlang
Expand Down
5 changes: 4 additions & 1 deletion src/elvis_style.erl
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,10 @@ default(no_common_caveats_call) ->
{timer, send_after, 3},
{timer, send_interval, 2},
{timer, send_interval, 3},
{erlang, size, 1}
{erlang, size, 1},
{gen_statem, call, 2},
{gen_server, call, 2},
{gen_event, call, 3}
]
};
default(atom_naming_convention) ->
Expand Down
2 changes: 1 addition & 1 deletion test/style_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ verify_no_debug_call(Config) ->
%% other than defaults, they behave the same
-spec verify_no_common_caveats_call(config()) -> any().
verify_no_common_caveats_call(Config) ->
verify_no_call_flavours(Config, no_common_caveats_call, caveat_functions, 6).
verify_no_call_flavours(Config, no_common_caveats_call, caveat_functions, 9).

-spec verify_no_call(config()) -> any().
verify_no_call(Config) ->
Expand Down