-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.credo.exs
More file actions
25 lines (25 loc) · 793 Bytes
/
Copy path.credo.exs
File metadata and controls
25 lines (25 loc) · 793 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
# Credo configuration for the Localize input libraries.
#
# Mirrors the Localize policy: strict, with `Design.AliasUsage` disabled.
# Component and validator code fully qualifies many calls because module
# names such as `Localize.Inputs.ValidationError` and `Localize.Number`
# read more clearly at the call site than an alias, and because trailing
# segments such as `Number`, `Format` and `List` shadow other modules
# when aliased. Alias Localize submodules opportunistically where the
# trailing segment does not clash, never as a bulk conversion.
%{
configs: [
%{
name: "default",
strict: true,
files: %{
included: ["lib/", "test/"]
},
checks: %{
disabled: [
{Credo.Check.Design.AliasUsage, []}
]
}
}
]
}