Skip to content

fix: resolve project-wide golangci-lint debt #119

Closed

Description

@yvonnedevlinrh

Summary

MegaLinter reports 46 existing Go lint findings across 18 files. These findings are outside PR #110's changed Go package; internal/workflowtest/... passes golangci-lint with zero issues.

Findings

  • 24 errcheck findings, primarily ignored Close, Rollback, Scan, and subprocess errors
  • 9 govet findings
  • 6 staticcheck findings
  • 3 gofmt findings
  • 3 gocritic findings
  • 1 ineffassign finding

Affected areas include doctor, forge, gitutil, memory, MCP client, org storage/sync, tool handlers, and parity helpers.

Acceptance Criteria

  • golangci-lint run ./... exits successfully
  • Ignored cleanup errors are handled or explicitly justified
  • SQL row and transaction cleanup remains safe
  • Formatting findings are corrected with gofmt
  • go vet ./... passes
  • go test ./... -count=1 -race passes
  • Coverage ratchets remain unchanged and pass
  • No linter or quality gates are weakened

Context

Observed while addressing PR #110. The debt is project-wide and was intentionally kept out of that feedback-focused PR.

Activity

  1. added
    bug
    on Sep 30, 2026
  2. yvonnedevlinrh commented on Sep 30, 2026

    @yvonnedevlinrh
    ContributorAuthor

    The Divisor panel classified this as a valid, objective bug. The reported golangci-lint, go vet, and formatting failures are reproducible, and ignored SQL cleanup, transaction, scan, and subprocess errors can conceal real correctness and reliability failures.

    The existing acceptance criteria provide a clear completion gate: resolve the findings without weakening lint, race, or coverage protections, and preserve safe SQL cleanup. Because the findings share one project-wide quality objective, they can remain in this issue rather than being split. Behavioral error-handling changes should include focused failure-path regression tests.

    This triage was performed by the Divisor review panel.

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

Metadata

Metadata

Labels

bug

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions