From 0883c9c8a9668a079e9d8591a802bbee32c7bf24 Mon Sep 17 00:00:00 2001 From: Josh Smith Date: Sun, 26 Nov 2017 01:35:29 -0800 Subject: [PATCH] Add dialyzer.ignore-warnings --- dialyzer.ignore-warnings | 6 ++++++ mix.exs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 dialyzer.ignore-warnings diff --git a/dialyzer.ignore-warnings b/dialyzer.ignore-warnings new file mode 100644 index 000000000..710f5fba2 --- /dev/null +++ b/dialyzer.ignore-warnings @@ -0,0 +1,6 @@ +:0: Unknown type 'Elixir.Access':get/2 +lib/code_corps/guardian.ex:26: The call 'Elixir.Timber':add_context(#{'__struct__':='Elixir.Timber.Contexts.UserContext', 'email':=_, 'id':=_, 'name':=_}) will never return since it differs in the 1st argument from the success typing arguments: (maybe_improper_list()) +lib/code_corps/services/markdown_renderer_service.ex:29: Function convert_into_html/1 has no local return +lib/code_corps/services/markdown_renderer_service.ex:35: Function put_into/3 will never be called +lib/code_corps_web/endpoint.ex:1: The call 'Elixir.Timber.Integrations.PhoenixInstrumenter':phoenix_channel_receive('start',compile@1::map(),runtime@1::map()) will never return since it differs in the 1st and 3rd argument from the success typing arguments: ('stop',any(),'ok') +lib/code_corps_web/endpoint.ex:1: The call 'Elixir.Timber.Integrations.PhoenixInstrumenter':phoenix_channel_join('start',compile@1::map(),runtime@1::map()) will never return since it differs in the 1st and 3rd argument from the success typing arguments: ('stop',any(),'ok') diff --git a/mix.exs b/mix.exs index f020ab45e..da92af567 100644 --- a/mix.exs +++ b/mix.exs @@ -13,7 +13,7 @@ defmodule CodeCorps.Mixfile do elixir: "~> 1.5.2", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, - dialyzer: [plt_add_apps: [:kernel, :stdlib], plt_add_deps: :transitive], + dialyzer: [ignore_warnings: "dialyzer.ignore-warnings", plt_add_apps: [:kernel, :stdlib], plt_add_deps: :transitive], build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, aliases: aliases(),