Skip to content

Add golangci-lint config#562

Merged
JamieMagee merged 1 commit intomainfrom
jamiemagee/add-golangci-lint-config
Feb 9, 2026
Merged

Add golangci-lint config#562
JamieMagee merged 1 commit intomainfrom
jamiemagee/add-golangci-lint-config

Conversation

@JamieMagee
Copy link
Member

Adds a .golangci.yml (v2 format) to give the repo a consistent linter setup.

The config uses the standard default set (errcheck, govet, ineffassign, staticcheck, unused) and turns on a few extras that catch real bugs without being too noisy:

  • bodyclose — unclosed HTTP response bodies
  • errorlint — incorrect error wrapping
  • gocritic — common code style issues
  • gosec — security problems
  • misspell — typos
  • noctx — missing context in HTTP/net calls
  • prealloc — slice preallocation hints

We already have golangci-lint in the Brewfile but no config, so everyone either runs different linters or none at all. This gets us to a shared baseline.

There are ~55 existing findings (mostly errcheck). Fixing those and wiring this into CI are separate follow-ups.

Closes #561

@JamieMagee JamieMagee requested review from a team as code owners February 9, 2026 22:16
Check in a .golangci.yml so the repo has a consistent linter setup.
Uses the v2 config format with the standard linter set plus bodyclose,
errorlint, gocritic, gosec, misspell, noctx, and prealloc.

Closes #561
@JamieMagee JamieMagee force-pushed the jamiemagee/add-golangci-lint-config branch from 2fd5445 to 6bf7b64 Compare February 9, 2026 22:16
@JamieMagee JamieMagee enabled auto-merge February 9, 2026 22:20
@JamieMagee JamieMagee added this pull request to the merge queue Feb 9, 2026
Merged via the queue into main with commit 1fdc225 Feb 9, 2026
89 checks passed
@JamieMagee JamieMagee deleted the jamiemagee/add-golangci-lint-config branch February 9, 2026 22:32
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.

Add golangci-lint configuration

2 participants