-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.credo.exs
More file actions
25 lines (25 loc) · 822 Bytes
/
.credo.exs
File metadata and controls
25 lines (25 loc) · 822 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
%{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "test/"],
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/", "lib/tables.ex"]
},
strict: true,
checks: %{
disabled: [
# Disable moduledoc check - this is a library with public API documented
{Credo.Check.Readability.ModuleDoc, []},
# Allow numbers without underscores in auto-generated code
{Credo.Check.Readability.LargeNumbers, []},
# Disable complexity checks for existing code - these are refactoring suggestions
{Credo.Check.Refactor.CyclomaticComplexity, []},
{Credo.Check.Refactor.Nesting, []},
# Allow alias expansion in tests
{Credo.Check.Readability.AliasAs, []}
]
}
}
]
}