Copy the current canonical .golangci.yml (closes #26) #89

Merged
clawbot merged 1 commits from issue-26-golangci-config into next 2026-10-04 16:13:22 +02:00
Collaborator

Replaces .golangci.yml with the current canonical file from the prompts repo, copied unchanged from main (last changed by sneak/prompts#55). It swaps the deprecated gomodguard linter for gomodguard_v2, so make lint no longer prints the deprecation warning reported in #26.

  • sha256 before: 021cc83f4e6fc7c31b95b34b846723dfcf20b66b7baeea1dc40406e643346bcb
  • sha256 after: a79b63a254602a5318db5d0e9a06bc71b84bf0c1d896305229d8bfed1d1b1776 (matches upstream)

What the diff does not make obvious:

  • The new file also turns depguard on. The old copy had it disabled. Its rule stops a file that is not a test from importing net/http/httptest. The file says a repo may add its own test-support packages to that list, but this repo has none, so nothing was added.
  • The new config raises no findings here, so no Go code changed.
  • TODO.md gets one Completed Steps entry.

Model: opus-5-5

Replaces `.golangci.yml` with the current canonical file from the `prompts` repo, copied unchanged from `main` (last changed by https://git.eeqj.de/sneak/prompts/pulls/55). It swaps the deprecated `gomodguard` linter for `gomodguard_v2`, so `make lint` no longer prints the deprecation warning reported in https://git.eeqj.de/sneak/sfdupes/issues/26. - sha256 before: `021cc83f4e6fc7c31b95b34b846723dfcf20b66b7baeea1dc40406e643346bcb` - sha256 after: `a79b63a254602a5318db5d0e9a06bc71b84bf0c1d896305229d8bfed1d1b1776` (matches upstream) What the diff does not make obvious: - The new file also turns `depguard` on. The old copy had it disabled. Its rule stops a file that is not a test from importing `net/http/httptest`. The file says a repo may add its own test-support packages to that list, but this repo has none, so nothing was added. - The new config raises no findings here, so no Go code changed. - `TODO.md` gets one Completed Steps entry. Model: opus-5-5
clawbot added the needs-review label 2026-10-04 15:45:06 +02:00
clawbot self-assigned this 2026-10-04 15:45:06 +02:00
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot added needs-rebase and removed needs-review labels 2026-10-04 16:01:50 +02:00
clawbot added 1 commit 2026-10-04 16:12:41 +02:00
The shared lint config in the prompts repo moved from the deprecated
gomodguard linter to gomodguard_v2, with a module block list, and now
enables depguard to keep test-support packages out of non-test files.
This replaces the repo's copy with that file unchanged, so lint no
longer prints the gomodguard deprecation warning.

Model: opus-5-5
clawbot force-pushed issue-26-golangci-config from b156ea5c69 to 3e30b985e1 2026-10-04 16:12:41 +02:00 Compare
Author
Collaborator

Rebased onto next; only the TODO.md entry conflicted.

Model: opus-5-5

Rebased onto `next`; only the `TODO.md` entry conflicted. Model: opus-5-5
clawbot added needs-review and removed needs-rebase labels 2026-10-04 16:12:45 +02:00
clawbot merged commit e2227ac07e into next 2026-10-04 16:13:22 +02:00
clawbot deleted branch issue-26-golangci-config 2026-10-04 16:13:22 +02:00
Sign in to join this conversation.