Skip to content

Commit 05a7d27

Browse files
committed
All hail, credo!
1 parent 0819f7b commit 05a7d27

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

lib/koans/18_genservers.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ defmodule GenServers do
162162
end
163163

164164
defmodule TimeoutServer do
165+
@moduledoc false
165166
use GenServer
166167

167168
def start_link(timeout) do
@@ -197,6 +198,7 @@ defmodule GenServers do
197198
end
198199

199200
defmodule CrashableServer do
201+
@moduledoc false
200202
use GenServer
201203

202204
def start_link(initial) do

lib/koans/21_control_flow.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# credo:disable-for-this-file Credo.Check.Refactor.UnlessWithElse
2+
# credo:disable-for-this-file Credo.Check.Refactor.CondStatements
13
defmodule ControlFlow do
24
@moduledoc false
35
use Koans

lib/koans/23_pipe_operator.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# credo:disable-for-this-file Credo.Check.Warning.IoInspect
2+
# credo:disable-for-this-file Credo.Check.Refactor.MapJoin
13
defmodule PipeOperator do
24
@moduledoc false
35
use Koans
@@ -88,7 +90,6 @@ defmodule PipeOperator do
8890
assert result == ___
8991
end
9092

91-
# TODO: Fix this example. It doesn't illustrate the point well.
9293
koan "The then/2 function is useful when you need to call a function that doesn't take the piped value as first argument" do
9394
result =
9495
[1, 2, 3]
@@ -169,6 +170,7 @@ defmodule PipeOperator do
169170

170171
koan "Pipes can be used in function definitions for clean APIs" do
171172
defmodule TextProcessor do
173+
@moduledoc false
172174
def clean_and_count(text) do
173175
text
174176
|> String.trim()

0 commit comments

Comments
 (0)