Skip to content

Commit 883204e

Browse files
author
Adriano Mitre
committed
add --strict to credo and ensure conformity
1 parent f89c943 commit 883204e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- run: mix deps.get
1919
- run: mix format --check-formatted
2020
- run: mix compile --warnings-as-errors
21-
- run: mix credo
21+
- run: mix credo --all --strict
2222

2323
test:
2424
name: Test
@@ -52,6 +52,7 @@ jobs:
5252
elixir-version: ${{matrix.elixir}}
5353

5454
- run: mix deps.get --only test
55-
- run: mix test --color 2>/tmp/tests.stderr
55+
- name: Run mix test
56+
run: mix test --color 2>/tmp/tests.stderr
5657
- name: Make sure tests do not have warnings
5758
run: "! grep -v 'warning: ' /tmp/tests.stderr"

lib/norm/core/all_of.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ defmodule Norm.Core.AllOf do
2525
end
2626
end
2727
end
28-

test/norm/contract_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ defmodule Norm.ContractTest do
9494
defmodule Reflection do
9595
use Norm
9696

97-
def int(), do: spec(is_integer())
97+
def int, do: spec(is_integer())
9898

9999
@contract foo(a :: int(), int()) :: int()
100100
def foo(a, b), do: a + b

0 commit comments

Comments
 (0)