-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clippy.sh
39 lines (36 loc) · 1.13 KB
/
.clippy.sh
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
# Copyright © 2022-2023 Brandon Li. All rights reserved.
# ========================================================= #
# Workaround for specifying an exact clippy lint configuration.
# See https://github.com/rust-lang/cargo/issues/5034
#
# This file describes the configuration that is passed into
# cargo clippy. Run ``make lint`` to use this configuration.
#
# See https://github.com/rust-lang/rust-clippy#usage for
# configuration options.
# ========================================================= #
# Deny all, then whitelist certain rules.
-D clippy::all
-D clippy::pedantic
-D clippy::nursery
-D clippy::cargo
-D clippy::correctness
-D clippy::suspicious
-D clippy::style
-D clippy::complexity
-D clippy::perf
# Allow list
-A clippy::derive-partial-eq-without-eq
-A clippy::enum-glob-use
-A clippy::implicit-hasher
-A clippy::missing-panics-doc
-A clippy::module-inception
-A clippy::module-name-repetitions
-A clippy::multiple-crate-versions
-A clippy::must-use-candidate
-A clippy::needless_pass_by_value
-A clippy::new-without-default
-A clippy::option-if-let-else
-A clippy::range-plus-one
-A clippy::too-many-lines
-A clippy::trivial_regex