-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.credo.exs
62 lines (60 loc) · 1.47 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
%{
configs: [
%{
name: "default",
files: %{
included: [
"lib/",
"test/"
],
excluded: [
~r"/_build/",
~r"/deps/",
~r"/node_modules/",
]
},
requires: [],
strict: false,
color: true,
checks: [
# enabled extra Credo checks
{Credo.Check.Readability.AliasAs, false},
{Credo.Check.Readability.MultiAlias, priority: :normal, exit_status: 129},
{Credo.Check.Readability.StrictModuleLayout, order: ~w/
shortdoc
moduledoc
behaviour
use
import
alias
require
module_attribute
defstruct
opaque
type
typep
callback
macrocallback
optional_callbacks
public_guard
public_macro
public_fun
impl
private_fun
/a, ignore: ~w/
private_macro
callback_impl
private_guard
module
/a},
{Credo.Check.Readability.Specs, include_defp: false},
# modified checks
{Credo.Check.Design.TagTODO, [exit_status: 0]},
{Credo.Check.Design.AliasUsage, [priority: :low, if_nested_deeper_than: 4, if_called_more_often_than: 3]},
# disabled checks
{Credo.Check.Readability.ModuleDoc, false},
{Credo.Check.Warning.MissedMetadataKeyInLoggerConfig, false}
]
}
]
}