From e757979f1a2afdbe7146066345bb9acd19d3b151 Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 17:09:59 +0000 Subject: comments: say why, not what MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every module-level `//!` header is gone, and the comments that remained either re-explained the line below them or had grown into paragraphs. Density went from one comment line per 6.7 lines of code to one per 10. 827 insertions against 2194 deletions across 86 files. What survived: the invariants (I1-I12), the design cross-references into DESIGN.md, and the notes recording a bug that was found and fixed — those are the comments that carry weight, because they answer a question the code cannot answer about itself. What did not: restating a function signature in prose, and narration of the statement underneath. --- src/review/risk.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/review/risk.rs') diff --git a/src/review/risk.rs b/src/review/risk.rs index cf7069d..3b483cf 100644 --- a/src/review/risk.rs +++ b/src/review/risk.rs @@ -1,15 +1,3 @@ -//! Advisory risk scoring (§6). -//! -//! The reviewer's attention is the scarcest resource in this system, so every -//! candidate gets a computed level that orders and colours the inbox. It is -//! **advisory only**: there is no auto-approval in v1 (§7.3), so nothing is -//! gated on a score and no heuristic can let something through. A wrong score -//! costs attention, never safety. -//! -//! Every signal is computed from what the accepted release recorded against -//! what the candidate records now — the same "never last seen" rule that makes -//! I2 true for the diff panels. - use crate::db::{self, model::*, Db}; use crate::error::Result; use crate::pkgver; -- cgit v1.2.3