-
Notifications
You must be signed in to change notification settings - Fork 9
/
.credo.exs
37 lines (36 loc) · 1.24 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
37
# config/.credo.exs
%{
configs: [
%{
name: "default",
files: %{
#
# You can give explicit globs or simply directories.
# In the latter case `**/*.{ex,exs}` will be used.
#
included: [
"lib/"
],
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/"]
},
strict: true,
checks: [
{CredoBinaryPatterns.Check.Consistency.Pattern},
{Credo.Check.Refactor.MapInto, false},
{Credo.Check.Warning.LazyLogging, false},
{Credo.Check.Readability.LargeNumbers, only_greater_than: 86400},
{Credo.Check.Readability.ParenthesesOnZeroArityDefs, parens: true},
{Credo.Check.Warning.RaiseInsideRescue, false},
{Credo.Check.Design.TagTODO, false},
{Credo.Check.Refactor.LongQuoteBlocks, []},
{Credo.Check.Refactor.Nesting, max_nesting: 3},
{Credo.Check.Readability.ImplTrue, []},
### Below are checks we will want to enable at later date ###
{Credo.Check.Refactor.WithClauses, false},
{Credo.Check.Refactor.CyclomaticComplexity, false},
{Credo.Check.Readability.WithSingleClause, false},
{Credo.Check.Warning.MissedMetadataKeyInLoggerConfig, false}
]
}
]
}