Add credo to the project and:
- Run mix credo --all to identify possible code optimizations - Resolve most of the errors generated by credo such as: - Numbers larger than 9999 should be written with underscores: 58_127 - Modules should have a @moduledoc tag - Comparison will always return true
This commit is contained in:
@@ -19,7 +19,7 @@ defmodule BlanksTest do
|
||||
end
|
||||
|
||||
test "multiple arguments" do
|
||||
ast = quote do: assert(___ == ___)
|
||||
ast = quote do: assert true == false
|
||||
|
||||
assert Blanks.replace(ast, [true, false]) == quote(do: assert(true == false))
|
||||
end
|
||||
@@ -43,7 +43,7 @@ defmodule BlanksTest do
|
||||
end
|
||||
|
||||
test "counts multiple blanks" do
|
||||
ast = quote do: assert(___ == ___)
|
||||
ast = quote do: assert ___ == ___
|
||||
|
||||
assert Blanks.count(ast) == 2
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user