-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy path.credo.exs
More file actions
32 lines (32 loc) · 1.21 KB
/
Copy path.credo.exs
File metadata and controls
32 lines (32 loc) · 1.21 KB
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
# Credo runs in strict mode, so `mix credo` locally reports exactly what CI
# reports. The settings below are the ones this repository pins on purpose;
# everything else is Credo's own default.
%{
configs: [
%{
name: "default",
strict: true,
files: %{
included: ["lib/", "src/", "test/", "config/", "mix.exs"],
excluded: [~r"/_build/", ~r"/deps/", ~r"/node_modules/"]
},
checks: %{
extra: [
# Classic McCabe cyclomatic complexity, at the ceiling shared by every
# project in this family, in Elixir and in JavaScript alike.
{Credo.Check.Refactor.CyclomaticComplexity, max_complexity: 9},
# Credo's strict default, or `line_length` from .formatter.exs where
# that is larger, so the formatter and the linter cannot disagree about
# a line the formatter itself produced.
{Credo.Check.Readability.MaxLineLength, max_length: 150}
],
disabled: [
# TODO and FIXME notes are tracked in the issue tracker. Failing a
# build on one only encourages deleting the note.
{Credo.Check.Design.TagTODO, []},
{Credo.Check.Design.TagFIXME, []}
]
}
}
]
}