Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types in callbacks not retrieved as such #260

Open
jackyhui96 opened this issue Oct 27, 2022 · 0 comments
Open

Types in callbacks not retrieved as such #260

jackyhui96 opened this issue Oct 27, 2022 · 0 comments
Labels

Comments

@jackyhui96
Copy link
Contributor

jackyhui96 commented 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 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 jackyhui96 added the bug label Oct 27, 2022
@paulo-ferraz-oliveira 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
@elbrujohalcon elbrujohalcon added this to the eventually 🙄 milestone Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants