elixir icon indicating copy to clipboard operation
elixir copied to clipboard

warn_on_unnecessary_quote should only warn for app code, not deps / library code within given app

Open mkralla11 opened this issue 8 years ago • 2 comments

Environment

  • Elixir (elixir --version): elixir >= 1.7
  • Operating system: Apline

Current behavior

After upgrading to elixir >= 1.7, I receive warnings regarding unnecessary quoting of atoms _within library code.

Expected behavior

There should be a way to configure the new option to only warn code for which you should be changing in your app, not code that is a dependency / library.

mkralla11 avatar Jul 30 '18 13:07 mkralla11

@mkralla11 This is a warning like any other. Elixir does not disable warning for dependencies intentionally. This makes them more visible and allow everyone to contribute fixes.

However, we do disable --warnings-as-errors, so warnings in those deps do not break your app.

josevalim avatar Jul 30 '18 13:07 josevalim

Understood! Thank you for the quick response.

mkralla11 avatar Jul 30 '18 13:07 mkralla11