elvis_core icon indicating copy to clipboard operation
elvis_core copied to clipboard

fix no_call, no_debug_call and invalid_dynamic_call rules

Open tothlac opened this issue 5 years ago • 0 comments

They work only without defines. If I have this in the code:

-define(DBG(Fmt, Args), io:format(Fmt, Args)).
-define(CALL(M, F, A), M:F(A)).

f() ->
   ?DBG("oyh~s", ["veyh"]),
   ?CALL(el, iyahu, []).

it won't be able to find the no_call and invalid_dynamic_call violations.

tothlac avatar May 13 '19 11:05 tothlac