-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.credo.exs
36 lines (34 loc) · 1.1 KB
/
.credo.exs
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
33
34
35
36
%{
configs: [
%{
name: "default",
files: %{
included: ["lib/", "src/", "test/", "web/", "apps/"],
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/"]
},
requires: [],
strict: true,
color: true,
checks: [
# extra enabled checks
{Credo.Check.Readability.AliasAs, []},
{Credo.Check.Readability.SinglePipe, []},
{Credo.Check.Readability.Specs, []},
{Credo.Check.Readability.WithCustomTaggedTuple, []},
{VBT.Credo.Check.Consistency.FileLocation,
ignore_folder_namespace: %{
"lib/<%= app %>_web" => ~w/channels controllers views/,
"test/<%= app %>_web" => ~w/channels controllers views/
}},
{VBT.Credo.Check.Consistency.ModuleLayout, []},
{VBT.Credo.Check.Graphql.MutationField, []},
{VBT.Credo.Check.Readability.MultilineSimpleDo, []},
# disabled checks
{Credo.Check.Design.TagTODO, false},
# obsolete checks
{Credo.Check.Refactor.MapInto, false},
{Credo.Check.Warning.LazyLogging, false}
]
}
]
}