Skip to content

Commit

Permalink
Use workspace.lints; allow multiple-bound-locations
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Mar 5, 2024
1 parent f4b7f74 commit afd660b
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Clippy
run: |
rustup +nightly component add clippy
./scripts/clippy.sh
cargo +nightly clippy --all-targets
- name: Dylint
run: |
Expand Down
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ members = [
]
resolver = "2"

[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
cognitive-complexity = "allow"
collection-is-never-read = "allow"
missing-errors-doc = "allow"
missing-panics-doc = "allow"
multiple-bound-locations = "allow"
option-if-let-else = "allow"
redundant-pub-crate = "allow"

[workspace.metadata.dylint]
libraries = [
{ git = "https://github.com/trailofbits/dylint", pattern = "examples/general" },
Expand Down
3 changes: 3 additions & 0 deletions cargo-test-fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ xshell = "0.2"

testing = { path = "../testing", package = "test-fuzz-testing" }

[lints]
workspace = true

[package.metadata.cargo-udeps.ignore]
normal = ["paste"]
3 changes: 3 additions & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ serde_json = "1.0"
__bar_fuzz = []
__inapplicable_conversion = []
__self_ty_conflict = []

[lints]
workspace = true
3 changes: 3 additions & 0 deletions internal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ __serde_bincode = []
__serde_cbor = ["serde_cbor"]
__serde_cbor4ii = ["cbor4ii"]

[lints]
workspace = true

[package.metadata.cargo-udeps.ignore]
normal = ["bincode"]
3 changes: 3 additions & 0 deletions macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ syn = { version = "2.0", features = ["full", "parsing", "visit", "visit-mut"] }
[features]
__persistent = []
__self_ty_in_mod_name = ["heck"]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ serde = { version = "1.0", features = ["derive"] }
sha1 = "0.10"

internal = { path = "../internal", package = "test-fuzz-internal", version = "=5.0.0" }

[lints]
workspace = true
25 changes: 0 additions & 25 deletions scripts/clippy.sh

This file was deleted.

3 changes: 3 additions & 0 deletions test-fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ serde_cbor = ["internal/__serde_cbor"]
serde_cbor4ii = ["internal/__serde_cbor4ii"]
__persistent = ["afl", "test-fuzz-macro/__persistent"]

[lints]
workspace = true

[package.metadata.cargo-udeps.ignore]
normal = ["afl"]
3 changes: 3 additions & 0 deletions testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ retry = "2.0"
subprocess = "0.2"

internal = { path = "../internal", package = "test-fuzz-internal", version = "=5.0.0" }

[lints]
workspace = true

0 comments on commit afd660b

Please sign in to comment.