fix(simulation): Clippy cleanup and CI enforcement (#635)

Fix all Clippy warnings across the server codebase (2411 insertions, 1341
deletions). Raise type-complexity-threshold to 750 and too-many-arguments
to 12 in .clippy.toml for idiomatic Bevy ECS system signatures. The server
now passes `cargo clippy -- --deny warnings` cleanly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-17 10:33:15 +01:00
co-authored by Claude Opus 4.6
parent 7f7706442a
commit aa79dd97e7
84 changed files with 2409 additions and 1339 deletions
+24 -10
View File
@@ -2258,7 +2258,9 @@ fn access_rule_knowledge_gated_passes_with_matching_fact() {
.spawn((
crate::npc::Npc,
TilePosition::new(16, 14, 0),
AccessRule(ObserverAccess::KnowledgeGated("contraband.ring_exists".into())),
AccessRule(ObserverAccess::KnowledgeGated(
"contraband.ring_exists".into(),
)),
))
.id();
let npc_sid = registry.register(npc);
@@ -2323,7 +2325,9 @@ fn access_rule_knowledge_gated_redacts_without_fact() {
.spawn((
crate::npc::Npc,
TilePosition::new(16, 14, 0),
AccessRule(ObserverAccess::KnowledgeGated("conspiracy.mastermind".into())),
AccessRule(ObserverAccess::KnowledgeGated(
"conspiracy.mastermind".into(),
)),
))
.id();
let npc_sid = registry.register(npc);
@@ -2636,9 +2640,15 @@ fn tell_state_nervous_appears_in_snapshot_for_major_secret_high_stress() {
severity: SecretSeverity::Major,
known_by: vec![],
},
ToleranceThreshold { current_stress: 60, threshold: 100 },
ToleranceThreshold {
current_stress: 60,
threshold: 100,
},
Contentment { level: 0 },
MoodState { mood: NpcMood::Neutral, changed_tick: 0 },
MoodState {
mood: NpcMood::Neutral,
changed_tick: 0,
},
DerivedTellState::default(),
));
@@ -2690,9 +2700,15 @@ fn tell_state_none_for_neutral_npc_in_snapshot() {
severity: SecretSeverity::Minor,
known_by: vec![],
},
ToleranceThreshold { current_stress: 10, threshold: 100 },
ToleranceThreshold {
current_stress: 10,
threshold: 100,
},
Contentment { level: 0 },
MoodState { mood: NpcMood::Neutral, changed_tick: 0 },
MoodState {
mood: NpcMood::Neutral,
changed_tick: 0,
},
DerivedTellState::default(),
));
@@ -2708,8 +2724,7 @@ fn tell_state_none_for_neutral_npc_in_snapshot() {
.expect("NPC should be visible in snapshot");
assert_eq!(
npc.tell_state,
None,
npc.tell_state, None,
"neutral NPC should have no tell state in snapshot"
);
}
@@ -2745,8 +2760,7 @@ fn tell_state_none_when_npc_has_no_derived_tell_component() {
.expect("NPC should be visible in snapshot");
assert_eq!(
npc.tell_state,
None,
npc.tell_state, None,
"NPC without DerivedTellState component should have tell_state = None"
);
}