Skip to content

Conversation

@bryanjos
Copy link
Collaborator

@bryanjos bryanjos commented Nov 6, 2017

fixes #409

ElixirScript.Translate.Protocol.compile(module, info, pid)
end

def compile(_module, %{attributes: [__foreign_info__: %{path: _, name: _, global: _}]}, _) do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functions should have a @SPEC type specification.

|> Map.put(:output, Keyword.get(opts, :output))
|> Map.put(:format, :es)
|> Map.put(:root, Keyword.get(opts, :root, "."))
|> Map.put(:remove_unused_functions, Keyword.get(opts, :remove_unused_functions, Mix.env == :prod))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long (max is 80, was 103).

@sourcelevel-bot
Copy link

Ebert has finished reviewing this Pull Request and has found:

  • 1 possible new issue (including those that may have been commented here).

You can see more details about this review at https://ebertapp.io/github/elixirscript/elixirscript/pulls/434.

@bryanjos bryanjos merged commit eb78939 into master Nov 7, 2017
@bryanjos bryanjos deleted the remove_unused_functions_option branch November 7, 2017 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make unused function pass optional

2 participants