Skip to content

Commit a2622a2

Browse files
chore(ci): add clippy (#248)
* chore(ci): add clippy to CI * refactor: hoist too_many_arguments special clippy ignore
1 parent e6e9fc7 commit a2622a2

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ jobs:
2727
rustup update stable
2828
rustup default stable
2929
rustup component add rustfmt
30+
3031
- name: Format source code
3132
run: cargo fmt -- --check
3233

34+
- name: Run clippy
35+
run: cargo clippy --workspace --all-targets --all-features
36+
3337
#########
3438
# Build #
3539
#########

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ resolver = "2"
77
edition = "2021"
88
version = "0.1.0"
99

10+
[workspace.lints.clippy]
11+
too_many_arguments = 'allow'
12+
1013
[workspace.dependencies]
1114
anyhow = { version = "1.0.95", default-features = false }
1215
heck = { version = "0.5", default-features = false }

crates/spidermonkey-embedding-splicer/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ edition.workspace = true
88

99
[lib]
1010

11+
[lints]
12+
workspace = true
13+
1114
[dependencies]
1215
anyhow = { workspace = true }
1316
clap = { version = "4.5.31", features = ["suggestions", "color", "derive"] }

crates/splicer-component/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ version.workspace = true
77
[lib]
88
crate-type = ["cdylib"]
99

10+
[lints]
11+
workspace = true
12+
1013
[dependencies]
1114
spidermonkey-embedding-splicer = { path = "../spidermonkey-embedding-splicer" }

0 commit comments

Comments
 (0)