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:
@@ -239,7 +239,10 @@ mod tests {
|
||||
run_system(&mut world);
|
||||
|
||||
let queue = world.resource::<ToleranceBreachEventQueue>();
|
||||
assert!(queue.is_empty(), "stress=49 < threshold=50 should not breach");
|
||||
assert!(
|
||||
queue.is_empty(),
|
||||
"stress=49 < threshold=50 should not breach"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -402,8 +405,7 @@ mod tests {
|
||||
// Should not crash — query requires ToleranceThreshold, so entity is simply skipped
|
||||
let mut world = setup_world();
|
||||
world.spawn((
|
||||
Npc,
|
||||
ActiveSim,
|
||||
Npc, ActiveSim,
|
||||
// No ToleranceThreshold component
|
||||
));
|
||||
|
||||
@@ -529,7 +531,10 @@ mod tests {
|
||||
run_system(&mut world);
|
||||
|
||||
let queue = world.resource::<ToleranceBreachEventQueue>();
|
||||
assert!(queue.is_empty(), "stress=99 < threshold=100 should not breach");
|
||||
assert!(
|
||||
queue.is_empty(),
|
||||
"stress=99 < threshold=100 should not breach"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user