Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .clippy.toml

This file was deleted.

10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ check-cfg = [
'cfg(feature, values("frozen-abi", "no-entrypoint"))',
]

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

# Clippy lint configuration that can not be applied in clippy.toml
[workspace.lints.clippy]
arithmetic_side_effects = "deny"
default_trait_access = "deny"
manual_let_else = "deny"
used_underscore_binding = "deny"

[workspace.dependencies]
Inflector = "0.11.4"
axum = "0.7.9"
Expand Down
8 changes: 7 additions & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
deny-attributes = ["warnings", "clippy::default_trait_access", "clippy::arithmetic_side_effects", "clippy::manual_let_else", "clippy::used_underscore_bindings"]
too-many-arguments-threshold = 9

# Disallow specific methods from being used
disallowed-methods = [
{ path = "std::net::UdpSocket::bind", reason = "Use solana_net_utils::bind_with_config, bind_to, etc instead for proper socket configuration." },
{ path = "tokio::net::UdpSocket::bind", reason = "Use solana_net_utils::bind_to_async or bind_to_with_config_non_blocking instead for proper socket configuration." },
]
Loading