Watch
0
0
Fork
You've already forked hyperhive
0

review-classifier: say the 25-line context shows a gate only when it's within 25 lines

This commit is contained in:
atlas 2026-10-15 10:24:26 +02:00 • committed by mara
commit 276545fb45
2 changed files with 7 additions and 6 deletions

View file

@ -1,8 +1,8 @@
//! The diff the review classifier reads, built from both sides of each
//! changed file rather than taken from the forge's `.diff`, whose context is
//! fixed at 3 lines. With [`CONTEXT_LINES`] of context a moved block keeps
//! its enclosing gate (a `config = lib.mkIf …`, an option's `default`) in
//! view, so a move that restates that gate does not read as adding one.
//! fixed at 3 lines. [`CONTEXT_LINES`] of context shows an enclosing gate (a
//! `config = lib.mkIf …`, an option's `default`) only when it is within that
//! many lines of the change; a gate further away is still out of view.
use std::fmt::{self, Write as _};