elvis_core
elvis_core copied to clipboard
fix no_call, no_debug_call and invalid_dynamic_call rules
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.