Skip to content

Commit

Permalink
chore: add mix files to credo checks (#1423)
Browse files Browse the repository at this point in the history
* chore: add mix files to credo checks

* chore: fix unused test vars warning
  • Loading branch information
sborrazas committed Jun 27, 2023
1 parent de3db7c commit f0ba7b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .credo.exs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"apps/*/src/",
"apps/*/test/",
"apps/*/web/",
"priv/migrations/"
"priv/migrations/",
"mix.exs"
],
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/"]
},
Expand Down
4 changes: 3 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule AeMdw.MixProject do
use Mix.Project

@spec project() :: Keyword.t()
def project() do
[
app: :ae_mdw,
Expand Down Expand Up @@ -116,6 +117,7 @@ defmodule AeMdw.MixProject do
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
@spec application() :: Keyword.t()
def application() do
[
mod: {AeMdw.Application, []},
Expand All @@ -126,7 +128,7 @@ defmodule AeMdw.MixProject do

# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib", "priv/migrations"]
defp elixirc_paths(_env), do: ["lib", "priv/migrations"]

# Specifies your project dependencies.
defp deps() do
Expand Down
5 changes: 1 addition & 4 deletions test/devmode/ae_mdw_web/contract_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ defmodule Devmode.AeMdwWeb.ContractControllerTest do

describe "calls" do
test "it gets a contract's calls", %{conn: conn} do
%{
"accounts" => [sender_address, recipient_address | _rest],
"contracts" => [contract1, contract2 | _rest2]
} = DevmodeHelpers.output()
%{"contracts" => [contract1 | _rest2]} = DevmodeHelpers.output()

assert %{"data" => [amount_call, chain_create_call | _rest]} =
conn
Expand Down

0 comments on commit f0ba7b4

Please sign in to comment.