Skip to content

Commit

Permalink
chore: move lint config to Cargo.toml (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
bajtos authored Nov 20, 2023
1 parent 6cb438b commit 489bb7b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ rustflags = [
# Temporary solution to have clippy config in a single place until
# Cargo and/or Clippy supports lint config file.
# See https://github.com/rust-lang/rust-clippy/blob/8a9860901f0ae9782ff23fb793838a16f733a60b/book/src/development/proposals/roadmap-2021.md#lintstoml-configuration
custom-clippy = "clippy --workspace --all-features --all-targets -- -A clippy::type_complexity -A clippy::pedantic -D warnings"
custom-clippy = "clippy --workspace --all-features --all-targets"
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ codegen-units = 1
opt-level = "z"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace.lints.rust]
warnings="deny"

[workspace.lints.clippy]
type_complexity="allow"
pedantic="allow"
2 changes: 2 additions & 0 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ LegalCopyright = "© Protocol Labs & Zinnia contributors. Permissive License Sta
ProductName = "Filecoin Station"
FileDescription = "Zinnia: Secure sandboxed runtime for Filecoin Station modules."

[lints]
workspace = true
3 changes: 3 additions & 0 deletions daemon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ assert_cmd = { workspace = true }
assert_fs = { workspace = true }
pretty_assertions = { workspace = true }
tempfile = "3.8.1"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions ext/libp2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ env_logger.workspace = true
rand = "0.8.5"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lints]
workspace = true
3 changes: 3 additions & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ console_static_text = "0.8.1"
env_logger.workspace = true
pretty_assertions = { workspace = true }
regex = "1.10.2"

[lints]
workspace = true

0 comments on commit 489bb7b

Please sign in to comment.