Skip to content

Conversation

@the-mikedavis
Copy link
Collaborator

Most of the elixirc warnings in the CLI are benign. There are a few cases where I believe a variable was meant to be an atom instead though, which should change some error-handling behavior slightly.

I've also added a bazel test for running mix compile --warnings-as-errors so these can be caught by the CI in the future.

This test should fail when `mix compile --warnings-as-errors` gives
any warnings.
* Remove unused aliases/imports
* Remove or underscore unused bindings
* Fix variables that should be atoms (`unavailable` -> `:unavailable`)

Also, `Logger.warn/1` has been replaced by `Logger.warning/1`. It should
be safe to just replace the call with `Logger.warning/1` since it's
been in the standard library since Elixir 1.11.
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.

3 participants