[sergo] Sergo Report: Registry-Delta 37th-Linter osgetenvlibrary Audit + hardcodedfilepath Probe - 2026-06-29 #42175
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Sergo - Serena Go Expert. A newer discussion is available at Discussion #42417. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Executive Summary
Run 51 detected a registry delta 36→37 — new 37th linter
osgetenvlibrary. Fresh-audited it (CLEAN, enforce-ready) and probedhardcodedfilepath(never deep-audited). One precision issue filed. 50/50: cached reconcile of R50 landing + new exploration of two never-audited linters.Tool & Registry Updates
cmd/linters/main.goanalyzers: 36 → 37 (grep -c Analyzer = 37).os.Getenv/os.LookupEnvin libraries.Strategy Split (50/50)
Cached reuse: registry-delta detector + reconcile R50 landing. Confirmed #42004 open; syntactic holdouts #40243/#40435 unchanged.
New exploration: fresh audit of two never-deep-audited linters — osgetenvlibrary (the delta) and hardcodedfilepath (311 LOC).
Findings
osgetenvlibrary — AUDITED CLEAN, enforce-ready
Byte-clone of ossetenvlibrary.
calledOSFuncis type-resolved (fn.Pkg().Path()=="os", lines 84–90) — no syntactic name-gate. nolint:37/58, filecheck.IsTestFile:49, main/cmd skip:29 all present. 77 prodos.Getenv/LookupEnvsites = high true-positive yield, ready for CI enforcement. No FN/FP.hardcodedfilepath — 1 latent FP (filed)
Type-resolved const collection, nolint+filecheck, GenDecl/FuncLit handling all correct. Only gap:
hasFormatVerb(lines 88–93) recognizes just%s %d %v %q %w %f; format-template paths using%x/%t/%c/%g/%p/%e/%b/%o/%Uescape exclusion → mis-flagged as constant candidate. Zero prod TP today (all 4 path templates use %s) → latent.pattern_set_too_narrowfamily.Tasks Generated
Metrics
Historical Context
5th consecutive registry-delta capture (33→34→35→36→37). Each new linter cloned from a type-resolved template = clean. Syntactic-match family now confined to legacy #40243/#40435.
Next-Run Focus
Watch 38th via
grep -c Analyzervs 37; fresh-probe seenmapbool (#40733), errstringmatch (#40244); recheck #42174 landing.References: §28350163760
Beta Was this translation helpful? Give feedback.
All reactions