Skip to content

[audit] Dup: ~20 identical tabwriter.NewWriter(...,2,' ',0) init sites — add a shared newTableWriter() helper #296

Closed

Description

@scttfrdmn

Filed from the 2026-07-11 spawn audit. Full report: docs/spawn-audit-2026-07-11.md. Assessment-only — no code changed yet.

Phase: Phase 0 — do now (dup, optional)

Evidence

  • ~20 sites across cmd/*.go use identical tabwriter.NewWriter(w,0,2,2,' ',0)
  • cmd/dns.go:88 uses padding 3 (the one outlier)

Recommendation
Add newTableWriter() in cmd/utils.go; normalize dns.go. Low-value/optional — do opportunistically when touching these files.

User-facing / SemVer: No — internal. No bump.

Adversarially verified during the audit (62/62 findings survived verification; severities/scope adjusted where the first pass was wrong).

Activity

  1. added
    audit:2026-07
    on Jul 11, 2026
  2. scttfrdmn commented on Jul 11, 2026

    @scttfrdmn
    ContributorAuthor

    Shipped in #331 (squash-merged to main). Closing manually (only #294 auto-closed from that PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    audit:2026-07

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions