Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 1d886a4

Browse files
committed
Migrate lint configuration to common workspace
1 parent 3e0b04d commit 1d886a4

File tree

23 files changed

+71
-7
lines changed

23 files changed

+71
-7
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ license = "EUPL-1.2"
4242
homepage = "https://scripty.org"
4343
repository = "https://github.com/scripty-bot/scripty"
4444

45+
[workspace.lints.rust]
46+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)', 'cfg(ignore_os)'] }
47+
48+
[workspace.lints.clippy]
49+
uninlined-format-args = "allow"
50+
4551
[workspace.dependencies]
4652
# basic version deps
4753
csv = "1"

scripty_audio_handler/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ license.workspace = true
66
homepage.workspace = true
77
repository.workspace = true
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
sqlx.workspace = true
1114
ahash.workspace = true

scripty_automod/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ license.workspace = true
66
homepage.workspace = true
77
repository.workspace = true
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
stfu.workspace = true
1114
sqlx.workspace = true

scripty_bot/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ license.workspace = true
66
homepage.workspace = true
77
repository.workspace = true
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
sqlx.workspace = true
1114
tokio.workspace = true

scripty_bot_utils/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ license.workspace = true
66
homepage.workspace = true
77
repository.workspace = true
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
uuid.workspace = true
1114
http.workspace = true

scripty_botlists/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ license.workspace = true
66
homepage.workspace = true
77
repository.workspace = true
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
serde.workspace = true
1114
reqwest.workspace = true

scripty_build_checks/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license.workspace = true
66
homepage.workspace = true
77
repository.workspace = true
88

9-
[dependencies]
9+
[lints]
10+
workspace = true
1011

11-
[lints.rust]
12-
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ignore_os)'] }
12+
[dependencies]

scripty_commands/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ license.workspace = true
66
homepage.workspace = true
77
repository.workspace = true
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
hex.workspace = true
1114
rand.workspace = true

scripty_config/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ license.workspace = true
66
homepage.workspace = true
77
repository.workspace = true
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
toml.workspace = true
1114
serde.workspace = true

scripty_core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ repository.workspace = true
1010
name = "scripty_v2"
1111
path = "src/main.rs"
1212

13+
[lints]
14+
workspace = true
15+
1316
[dependencies]
1417
url.workspace = true
1518
fern.workspace = true

0 commit comments

Comments
 (0)