rebar3_hank
rebar3_hank copied to clipboard
Identify nif functions checking the -nifs(…) attribute
OTP25 introduced a new attribute to identify functions overridden by nifs: -nifs(…).
.
Hank currently identifies them by their calls to erlang:nif_error/2
.
Describe the solution you'd like
I would like Hank to stop inferring which functions are overridden by nifs and just use -nifs(…)
to figure that out.
Describe alternatives you've considered
Hank might keep also inferring the overrides by checking erlang:nif_error/2
but I think it's better to enforce good practices and get devs to include -nifs(…)
in their modules, even if they just do it to silence Hank's warnings.