Skip to content

Commit bdbdeb0

Browse files
committed
Exclude tests from duplicated code check
Sometimes tests are a bit repeated, and usually that is fine.
1 parent 38913ca commit bdbdeb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.credo.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
# or the `schema` macro in Ecto schemas to trigger DuplicatedCode, just
7272
# set the `excluded_macros` parameter to `[:schema, :setup, :test]`.
7373
#
74-
{Credo.Check.Design.DuplicatedCode, excluded_macros: []},
74+
{Credo.Check.Design.DuplicatedCode, excluded_macros: [], files: %{excluded: "test/**/*_test.exs"}},
7575
# You can also customize the exit_status of each check.
7676
# If you don't want TODO comments to cause `mix credo` to fail, just
7777
# set this value to 0 (zero).

0 commit comments

Comments
 (0)