- Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Bug Description
It's a very nice plugin, so probably we would like to use it on our repositories.
Unfortunately, it looks like sometimes there are false positive warnings.
To Reproduce
Run rebar3 hank on this simple code
-module(myapp). -define(EXCEPTION(C, R, Stacktrace), C:R:Stacktrace). -export([f/0]). -define(RESULT, 1). -spec f() -> term(). f() -> try ?RESULT catch ?EXCEPTION(_, _Reason, _St) -> ok end. Expected Behavior
hank returns the following false positive:
(base) tothlac:myapp rebar3 hank ===> Looking for code to kill with fire... ===> The following pieces of code are dead and should be removed: src/myapp.erl:7: ?RESULT is unused , and it should not complain.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working