-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.credo.exs
More file actions
27 lines (25 loc) · 766 Bytes
/
.credo.exs
File metadata and controls
27 lines (25 loc) · 766 Bytes
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
%{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "src/", "test/"],
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/"]
},
strict: true,
parse_timeout: 5000,
color: true,
checks: %{
enabled: [
# Consistency checks
{Credo.Check.Consistency.ExceptionNames, false},
# Readability checks - allow explicit try for clarity in detector code
{Credo.Check.Readability.PreferImplicitTry, false},
# Refactoring - allow slightly higher complexity for platform detection
{Credo.Check.Refactor.CyclomaticComplexity, [max_complexity: 15]},
{Credo.Check.Refactor.Nesting, [max_nesting: 4]}
]
}
}
]
}