Skip to content

Commit d79ca62

Browse files
committed
clippy: refactor to define lints in Cargo.toml manifest
1 parent e65caf5 commit d79ca62

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

.github/workflows/testing.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373

7474
- id: lint
7575
name: Run Lint Checks
76-
run: cargo clippy --tests --benches --examples --workspace --all-targets --all-features -- -D clippy::correctness -D clippy::suspicious -D clippy::complexity -D clippy::perf -D clippy::style -D clippy::pedantic
76+
run: cargo clippy --tests --benches --examples --workspace --all-targets --all-features
7777

7878
- id: docs
7979
name: Lint Documentation

.vscode/settings.json

-15
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,6 @@
55
"rust-analyzer.checkOnSave": true,
66
"rust-analyzer.check.command": "clippy",
77
"rust-analyzer.check.allTargets": true,
8-
"rust-analyzer.check.extraArgs": [
9-
"--",
10-
"-D",
11-
"clippy::correctness",
12-
"-D",
13-
"clippy::suspicious",
14-
"-W",
15-
"clippy::complexity",
16-
"-W",
17-
"clippy::perf",
18-
"-W",
19-
"clippy::style",
20-
"-W",
21-
"clippy::pedantic",
22-
],
238
"evenBetterToml.formatter.allowedBlankLines": 1,
249
"evenBetterToml.formatter.columnWidth": 130,
2510
"evenBetterToml.formatter.trailingNewline": true,

Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,11 @@ uuid = { version = "1", features = ["v4"] }
103103
tempfile = "3"
104104
uuid = { version = "1", features = ["v4"] }
105105
which = "6"
106+
107+
[lints.clippy]
108+
complexity = { level = "deny", priority = -1 }
109+
correctness = { level = "deny", priority = -1 }
110+
pedantic = { level = "deny", priority = -1 }
111+
perf = { level = "deny", priority = -1 }
112+
style = { level = "deny", priority = -1 }
113+
suspicious = { level = "deny", priority = -1 }

0 commit comments

Comments
 (0)