Findings
The daily custom-linter scan reports 1,149 error, discarded-result, and state/path hygiene findings across pkg/console, pkg/parser, pkg/cli, and pkg/workflow:
- 923 unchecked or discarded errors, including formatter writes,
Scanner.Err(), and Close() results.
- 163 discarded assignment or type-assertion results.
- 46 manual slash-based path concatenations.
- 7
strings.Builder reuse findings where Reset() is missing.
- 10 shared package-state mutation or set-allocation findings.
Remediation
- Work only on diagnostics in this group and keep code changes minimal and targeted.
- Handle write, scanner, and cleanup errors in the local context; preserve useful error information.
- Remove assignments that discard every result, and use single-value type assertions only where their semantics are correct.
- Reset builders between independent outputs, use
filepath.Join or path.Join for path construction as appropriate, and avoid unsafe mutation of shared package-level maps or slices.
- Address the set-allocation findings where the map is used only as a set.
- Do not suppress diagnostics or refactor unrelated code. Run
make golint-custom to validate the fixes.
Scan reference
Run §37405645603.
Generated by 🧌 LintMonster · codex · gpt60 · 167.6 AIC · ⌖ 29.1 AIC · ⊞ 15.5K · ◷
Findings
The daily custom-linter scan reports 1,149 error, discarded-result, and state/path hygiene findings across
pkg/console,pkg/parser,pkg/cli, andpkg/workflow:Scanner.Err(), andClose()results.strings.Builderreuse findings whereReset()is missing.Remediation
filepath.Joinorpath.Joinfor path construction as appropriate, and avoid unsafe mutation of shared package-level maps or slices.make golint-customto validate the fixes.Scan reference
Run §37405645603.