From 73698814e8d7455bcba1f277d874459e86043511 Mon Sep 17 00:00:00 2001 From: Mathias Date: Sat, 5 Sep 2026 12:40:35 +0200 Subject: [PATCH] style: apply gofmt Estate-wide consolidation pass. golangci-lint v2 default set enables NO formatter, so gofmt drift accumulated silently across the estate -- 8 repos were carrying it, this one included. Same hole that let two files rot in dma-cli until they were found by hand (dma-cli#12). Mechanical and deterministic: `gofmt -w`, nothing hand-edited. Verified before commit -- gofmt -l now reports 0, go build and go vet both pass. Clears this repo to adopt the canonical .golangci.yml (infra ci-templates/golangci.yml, infra#309 pattern) in a later wave. --- internal/eval/var.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/eval/var.go b/internal/eval/var.go index 5efe236..a61d3c5 100644 --- a/internal/eval/var.go +++ b/internal/eval/var.go @@ -8,7 +8,8 @@ import "math" // breach_t = actualVol[t] > VaR_99_t (strict inequality) // breachRate = fraction of breaches over all steps // kupiecP = Kupiec POF p-value: P(chi²(1) > LR) where LR is the likelihood ratio -// testing H0: true breach probability = 1%. High p = well-calibrated. +// +// testing H0: true breach probability = 1%. High p = well-calibrated. // // Returns (0, 1) for empty or mismatched input. func VaRBreachRate(predVol, actualVol []float64, z99 float64) (breachRate, kupiecP float64) {