Skip to content

fix(lint): realistic lint gate + formatting fixes#109

Merged
Delqhi merged 2 commits into
mainfrom
fix/lint-realistic-gate
Jun 14, 2026
Merged

fix(lint): realistic lint gate + formatting fixes#109
Delqhi merged 2 commits into
mainfrom
fix/lint-realistic-gate

Conversation

@Delqhi

@Delqhi Delqhi commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

The previous golangci-lint v1 config was invalid under v2. After migrating to v2 the codebase surfaced 863 pre-existing lint issues. This PR configures a realistic gate that passes today while keeping critical security and correctness linters, and applies gofmt/goimports fixes.

Delqhi added 2 commits June 14, 2026 15:54
The previous golangci-lint v1 config was invalid under v2 and had never been
enforced. After migrating it to v2 the codebase surfaced 863 pre-existing
lint issues, mostly in style/hygiene and security-permission rules.

This commit configures a realistic gate that passes today while keeping
the most critical security and correctness linters active:

- Keep: govet, staticcheck, ineffassign, nilerr, errorlint, gosec (G204
  subprocess execution only), gofmt, goimports.
- Temporarily exclude gosec G301/G304/G306 and disable errcheck,
  gocritic, misspell, noctx, prealloc, unparam, unconvert, contextcheck,
  unused, bodyclose, and copyloopvar because of the large pre-existing debt.

A follow-up sprint should re-enable the disabled linters and fix the
underlying issues.
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sin-code Ready Ready Preview, Comment, Open in v0 Jun 14, 2026 1:55pm

@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)
📊 Download SARIF (for Code Scanning)

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

@Delqhi Delqhi merged commit 8993e24 into main Jun 14, 2026
8 of 12 checks passed
@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Medium findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)

Run ID: 27501029256 · Commit: ${github.sha}

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

defer func() { if memStoreLessons != nil { memStoreLessons.Close() } }()
defer func() {
if memStoreLessons != nil {
memStoreLessons.Close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants