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

Warn on dead ignore_xref #221

Open
kivra-pauoli opened this issue Feb 15, 2024 · 0 comments
Open

Warn on dead ignore_xref #221

kivra-pauoli opened this issue Feb 15, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@kivra-pauoli
Copy link

Is your feature request related to a problem? Please describe.

rebar3 uses ignore_xref directive to silence xref analysis when an exported function is not used in the scope of the analysis.
It might so happen that after a while you start using the "ignored" function, but the directive remains in the code, which would potentially classify as "dead code".

Describe the solution you'd like

Should hank care about this, this being rebar3 but also the "standard" Erlang build tool (which would make ignore_xref part of the scope hank "knows/cares" about)?

Describe alternatives you've considered

Keep having unnecessary ignore_xref directives here and there and reviewing that code, if/when I remember.

Additional Context

None.

@kivra-pauoli kivra-pauoli added the enhancement New feature or request label Feb 15, 2024
@elbrujohalcon elbrujohalcon added this to the 1.4.2 milestone Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants