
- 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
19 lines
368 B
Elixir
19 lines
368 B
Elixir
defmodule ElixirKoans do
|
|
@moduledoc false
|
|
use Application
|
|
|
|
def start(_type, _args) do
|
|
import Supervisor.Spec
|
|
|
|
children = [
|
|
worker(Display, []),
|
|
worker(Tracker, []),
|
|
worker(Runner, []),
|
|
worker(Watcher, [])
|
|
]
|
|
|
|
opts = [strategy: :one_for_one, name: ElixirKoans.Supervisor]
|
|
Supervisor.start_link(children, opts)
|
|
end
|
|
end
|