-
Notifications
You must be signed in to change notification settings - Fork 0
/
clippy.toml
34 lines (34 loc) · 1.05 KB
/
clippy.toml
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
cognitive-complexity-threshold = 20
warn-on-all-wildcard-imports = true
allow-expect-in-tests = true
allow-unwrap-in-tests = true
allow-dbg-in-tests = true
disallowed-methods = [
{ path = "std::option::Option::map_or", reason = "prefer `map(..).unwrap_or(..)` for legibility" },
{ path = "std::option::Option::map_or_else", reason = "prefer `map(..).unwrap_or_else(..)` for legibility" },
{ path = "std::result::Result::map_or", reason = "prefer `map(..).unwrap_or(..)` for legibility" },
{ path = "std::result::Result::map_or_else", reason = "prefer `map(..).unwrap_or_else(..)` for legibility" },
{ path = "std::iter::Iterator::for_each", reason = "prefer `for` for side-effects" },
{ path = "std::iter::Iterator::try_for_each", reason = "prefer `for` for side-effects" },
]
doc-valid-idents = [
"MiB",
"GiB",
"TiB",
"PiB",
"EiB",
"DirectX",
"OpenGL",
"TrueType",
"GPLv2",
"GPLv3",
"GitHub",
"IPv4",
"IPv6",
"JavaScript",
"NaN",
"OAuth",
"SQLite",
"PostgreSQL",
"MySQL",
]