-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.credo.exs
More file actions
32 lines (32 loc) · 1.05 KB
/
Copy path.credo.exs
File metadata and controls
32 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Credo configuration. This project is a faithful port of lovely-mermaid's
# TypeScript: the layout/parse loops intentionally keep the reference
# structure, so nesting and complexity thresholds are relaxed compared to
# the strict defaults while every other check stays on.
%{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "src/", "test/"],
excluded: [~r"/_build/", ~r"/deps/", ~r"/reference/"]
},
plugins: [{ExSlop, []}],
requires: [],
strict: true,
parse_timeout: 5000,
color: true,
checks: %{
disabled: [
# Ported loops keep the reference structure.
{Credo.Check.Refactor.Nesting, false},
# is_alphanumeric/is_id_char mirror Rust's is_* naming.
{Credo.Check.Readability.PredicateFunctionNames, false},
{Credo.Check.Refactor.CyclomaticComplexity, false}
],
enabled: [
{Credo.Check.Refactor.FunctionArity, max_arity: 12}
] ++ Enum.map(ExSlop.recommended_checks(), &{&1, []})
}
}
]
}