review-classifier: say the 25-line context shows a gate only when it's within 25 lines
This commit is contained in:
parent
4098fd6d35
commit
276545fb45
2 changed files with 7 additions and 6 deletions
|
|
@ -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 _};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue