configure clippy

This commit is contained in:
Icedsoda authored and Robin Krämer committed 2025-09-10 12:14:19 +02:00
1 parent f776a4ba19
commit 2b6904b145
9 files changed
+42 -5

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
{
"typescript.inlayHints.enumMemberValues.enabled": false,
"git.detectSubmodules": true,
"git.detectSubmodulesLimit": 10,
"git.detectSubmodules": true,
"git.detectSubmodulesLimit": 10,
"rust-analyzer.check.command": "clippy",
}
+17 -1
View File
@@ -4,7 +4,23 @@ members = [
"ethercat-hal",
"ethercat-hal-derive",
"control-core",
"ethercat-eeprom-dump", "control-core-derive",
"ethercat-eeprom-dump",
"control-core-derive",
]
exclude = []
resolver = "2"
[workspace.lints.clippy]
# Individual lints (priority 0)
# don't lint poissbilities for let chains because they were introduces after Rust 1.86
collapsible_if = "allow"
# Lint groups (priority -1)
suspicious = { level = "warn", priority = -1 }
complexity = { level = "warn", priority = -1 }
perf = { level = "warn", priority = -1 }
style = { level = "warn", priority = -1 }
pendantic = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
+4 -1
View File
@@ -3,10 +3,13 @@ name = "control_core_derive"
version = "0.1.0"
edition = "2024"
[lints]
workspace = true
[lib]
proc-macro = true
[dependencies]
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "2.0", features = ["full"] }
syn = { version = "2.0", features = ["full"] }
+4 -1
View File
@@ -3,6 +3,9 @@ name = "control_core"
version = "0.1.0"
edition = "2024"
[lints]
workspace = true
[dependencies]
anyhow = "1.0.99"
axum = "0.8.4"
@@ -10,7 +13,7 @@ ethercat_hal = { path = "../ethercat-hal" }
ethercrab = "0.6"
interfaces = "0.0.9"
serde = "1.0.219"
serde_json = "1.0.143"
serde_json = "1.0.143"
serialport = "4.7.3"
smol = "2.0.2"
socketioxide = "0.17.2"
@@ -238,6 +238,8 @@ impl AngleConverterUom {
#[cfg(test)]
mod tests {
use std::f32::consts::PI;
use super::*;
#[test]
+3
View File
@@ -3,6 +3,9 @@ name = "ethercat-eeprom-dump"
version = "0.1.0"
edition = "2024"
[lints]
workspace = true
[dependencies]
clap = { version = "4.5.40", features = ["derive"] }
ethercrab = "0.6.0"
+3
View File
@@ -3,6 +3,9 @@ name = "ethercat_hal_derive"
version = "0.1.0"
edition = "2024"
[lints]
workspace = true
[lib]
proc-macro = true
+3
View File
@@ -3,6 +3,9 @@ name = "ethercat_hal"
version = "0.1.0"
edition = "2024"
[lints]
workspace = true
[dependencies]
anyhow = "1.0.99"
ethercrab = "0.6"
+3
View File
@@ -4,6 +4,9 @@ version = "0.1.0"
edition = "2024"
rust-version = "1.86"
[lints]
workspace = true
[dependencies]
ethercrab = "0.6"