You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elvis is currently not categorising type elements inside a callback node as types.
Discovered this while working on #259.
To Reproduce
Can be reproduced by retrieving the parse tree of a module that contains callbacks and inspecting the output e.g. elvis_file:parse_tree(#{}, #{path => "test/examples/pass_invalid_dynamic_call.erl"}, #{}).
Expected Behavior
Expected that elvis categorises type elements such as any() as a type
rebar3 Logs
Additional Context
OS: Windows 11 - running in WSL2 container on Ubuntu 20.04 LTS
Erlang version: OTP 24
rebar3 version: rebar 3.19.0 on Erlang/OTP 24 Erts 12.3.2.6
The text was updated successfully, but these errors were encountered:
paulo-ferraz-oliveira
changed the title
Elements within callbacks are not being categorised as types
Types in callbacks not retrieved as such
Oct 27, 2022
Bug Description
Elvis is currently not categorising type elements inside a callback node as types.
Discovered this while working on #259.
To Reproduce
Can be reproduced by retrieving the parse tree of a module that contains callbacks and inspecting the output e.g.
elvis_file:parse_tree(#{}, #{path => "test/examples/pass_invalid_dynamic_call.erl"}, #{}).
Expected Behavior
Expected that elvis categorises type elements such as
any()
as a typerebar3
LogsAdditional Context
rebar 3.19.0 on Erlang/OTP 24 Erts 12.3.2.6
The text was updated successfully, but these errors were encountered: