Hi all,
Kind of a dumb question but I hit a bit of road block on this one and any help would be greatly appreciated.
I would like to set up mix so that warnings are treated as errors. I saw in Mix.Tasks.Compile.Elixir there is a flag I can pass in --warnings-as-errors but I can' figure out how to make this work.
I tried on the command line: mix compile --warnings-as-errors, but I am seeing the same warnings with no errors.
In my mix.exs file I also have the following defined:
def project do
[app: :sandbox,
version: "0.0.1",
deps_path: "../../deps",
lockfile: "../../mix.lock",
elixir: "~> 1.0",
erlc_options: [{:parse_transform, :lager_transform}, :warn_missing_spec, :warnings_as_errors],
deps: deps]
end
which works exactly as expected for my erlang files. So with all that stated here are my questions:
Is there something similar to erlc_options for the elixir files?
Is there a flag for warn on missing spec like in Erlang?
Thanks again for any help and/or insight!
-chris