mirror of
https://github.com/ribru17/ts_query_ls.git
synced 2025-12-23 05:36:52 +00:00
rust: turn on more linting
This commit is contained in:
parent
2b31855207
commit
434734c73d
2 changed files with 29 additions and 0 deletions
26
Cargo.toml
26
Cargo.toml
|
|
@ -13,6 +13,32 @@ members = [
|
|||
"xtask",
|
||||
]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[workspace.lints.rust]
|
||||
warnings = "deny"
|
||||
|
||||
[workspace.lints.clippy]
|
||||
dbg_macro = "deny"
|
||||
todo = "deny"
|
||||
pedantic = { level = "deny", priority = -1 }
|
||||
nursery = { level = "deny", priority = -1 }
|
||||
cargo = { level = "deny", priority = -1 }
|
||||
|
||||
cargo_common_metadata = "allow"
|
||||
cast_precision_loss = "allow"
|
||||
cast-possible-truncation = "allow"
|
||||
cast_lossless = "allow"
|
||||
cast_sign_loss = "allow"
|
||||
cognitive_complexity = "allow"
|
||||
items_after_statements = "allow"
|
||||
multiple_crate_versions = "allow"
|
||||
option_if_let_else = "allow"
|
||||
redundant_closure_for_method_calls = "allow"
|
||||
too_many_lines = "allow"
|
||||
significant_drop_tightening = "allow"
|
||||
|
||||
[lib]
|
||||
path = "src/lib.rs"
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@ name = "xtask"
|
|||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
clap = { version = "4.5.37", features = ["derive"] }
|
||||
schemars = "0.8.22"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue