Skip to content

Commit

Permalink
fix dialyzer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Nov 28, 2023
1 parent b308c8a commit 18d2ab4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/mix/tasks/nodelix.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ defmodule Mix.Tasks.Nodelix do

@shortdoc "Invokes node with the profile and args"
@compile {:no_warn_undefined, Mix}
@dialyzer {:no_missing_calls, run: 1}

@impl true
@impl Mix.Task
def run(args) do
switches = [runtime_config: :boolean]
{opts, remaining_args} = OptionParser.parse_head!(args, switches: switches)
Expand Down
3 changes: 2 additions & 1 deletion lib/mix/tasks/nodelix.install.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ defmodule Mix.Tasks.Nodelix.Install do

@shortdoc "Installs Node.js"
@compile {:no_warn_undefined, Mix}
@dialyzer {:no_missing_calls, run: 1}

@impl true
@impl Mix.Task
def run(args) do
valid_options = [runtime_config: :boolean, if_missing: :boolean, assets: :boolean]

Expand Down
9 changes: 8 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ defmodule Nodelix.MixProject do

def application do
[
extra_applications: [:crypto, :logger, inets: :optional, ssl: :optional],
extra_applications: [
:crypto,
:logger,
:public_key,
inets: :optional,
ssl: :optional
],
mod: {Nodelix, []},
env: [default: []]
]
Expand All @@ -38,6 +44,7 @@ defmodule Nodelix.MixProject do

defp dialyzer() do
[
plt_add_apps: [:mix, :inets],
plt_local_path: "priv/plts/project.plt",
plt_core_path: "priv/plts/core.plt"
]
Expand Down

0 comments on commit 18d2ab4

Please sign in to comment.