chore(#1474): add reason= to remaining bare clippy allows outside dashboard

This commit is contained in:
damocles 2026-06-09 00:26:19 +02:00 committed by mara
commit 7c9954ceec
12 changed files with 81 additions and 16 deletions

View file

@ -40,7 +40,11 @@ pub fn now_unix() -> i64 {
/// the agent and manager serve loops — the shape is identical, only the
/// post-turn count fetch helpers differ (and those stay in each binary).
#[must_use]
#[allow(clippy::too_many_arguments)]
#[allow(
clippy::too_many_arguments,
reason = "args mirror the turn-stats row columns 1:1; a builder struct used \
only here would just relabel the same fields"
)]
pub fn build_row(
started_at: i64,
ended_at: i64,

View file

@ -637,7 +637,12 @@ pub async fn compact_session(files: &TurnFiles, bus: &Bus) -> TurnOutcome {
outcome
}
#[allow(clippy::too_many_lines)]
#[allow(
clippy::too_many_lines,
reason = "one linear subprocess driver: spawn claude, stream + classify \
stdout/stderr, then assemble the outcome; splitting it would \
fragment the streaming state across helpers"
)]
async fn run_claude(prompt: &str, files: &TurnFiles, bus: &Bus) -> Result<(bool, bool, bool)> {
// Keep the last STDERR_TAIL_LINES of stderr so a non-zero exit can
// include real context in the bail message (and downstream in the