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

Export: true should cascade on transitive calls #36

Open
cando opened this issue May 24, 2022 · 0 comments
Open

Export: true should cascade on transitive calls #36

cando opened this issue May 24, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cando
Copy link

cando commented May 24, 2022

Hello,
it would be nice if transitive calls starting from a root function marked as "@export: true" are not maked as unused.
E.g.

defmodule Foo do
  @doc export: true
  def exported do
    used_only_externally()
  end

  def used_only_externally do
    foo()
    bar()
  end

  def foo, do: :ok

  def bar, do: :ok
end

Right now, used_only_externally is marked as unused, but it is not.

Thanks a lot.

@cando cando changed the title Export: true does not works on transitive calls Export: true should cascade on transitive calls May 24, 2022
@hauleth hauleth self-assigned this May 27, 2022
@hauleth hauleth added the bug Something isn't working label May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants