Skip to content

Commit 7e4293e

Browse files
committed
add --strict to credo and ensure conformity
1 parent ec5a59e commit 7e4293e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.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
@@ -53,7 +53,8 @@ jobs:
5353
elixir-version: ${{matrix.elixir}}
5454

5555
- run: mix deps.get --only test
56-
- run: mix test --color 2>/tmp/tests.stderr
56+
- name: Run mix test
57+
run: mix test --color 2>/tmp/tests.stderr
5758
- name: Make sure tests do not have warnings
5859
run: "! grep -v 'warning: ' /tmp/tests.stderr"
5960
if: matrix.warnings_as_errors

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

test/norm/core/delegate_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule Norm.Core.DelegateTest do
22
use Norm.Case, async: true
33

44
defmodule TreeTest do
5-
def spec() do
5+
def spec do
66
schema(%{
77
"value" => spec(is_integer()),
88
"left" => delegate(&TreeTest.spec/0),

0 commit comments

Comments
 (0)