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:
@@ -1,4 +1,5 @@
|
||||
defmodule Numbers do
|
||||
@moduledoc false
|
||||
require Integer
|
||||
use Koans
|
||||
|
||||
@@ -49,7 +50,7 @@ defmodule Numbers do
|
||||
end
|
||||
|
||||
koan "Let's grab the individual digits in a list" do
|
||||
individual_digits = Integer.digits(58127)
|
||||
individual_digits = Integer.digits(58_127)
|
||||
assert individual_digits == ___
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user