elvis_core icon indicating copy to clipboard operation
elvis_core copied to clipboard

Types in callbacks not retrieved as such

Open jackyhui96 opened this issue 2 years ago • 0 comments

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 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

jackyhui96 avatar Oct 27 '22 07:10 jackyhui96