Skip to content

Commit f11ca4b

Browse files
committed
Also ignore formatters from duplicated code for now, fixing them is... a longer road to walk
1 parent bdbdeb0 commit f11ca4b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.credo.exs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,19 @@
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: [], files: %{excluded: "test/**/*_test.exs"}},
74+
{
75+
Credo.Check.Design.DuplicatedCode,
76+
excluded_macros: [],
77+
files: %{
78+
excluded: [
79+
# Tests may have a bit of duplication, it's fine
80+
"test/**/*_test.exs",
81+
# Ah the formatters... we may want to make them nicer one of these days or use a library.
82+
# But.. not now.
83+
"lib/benchee/formatters/console/*.ex"
84+
]
85+
}
86+
},
7587
# You can also customize the exit_status of each check.
7688
# If you don't want TODO comments to cause `mix credo` to fail, just
7789
# set this value to 0 (zero).

0 commit comments

Comments
 (0)