The linter config, .gitignore and .dockerignore from the current templates #40

Closed
opened 2026-10-03 14:11:37 +02:00 by clawbot · 1 comment
Collaborator

The repo policy makes .golangci.yml one canonical file, byte-identical in every repo except the deny list of the test-support depguard rule, and has .gitignore and .dockerignore start from the standard files in sneak/prompts, extended with the repo's own artifacts. keyfunc's three files differ: .golangci.yml disables depguard and lacks the test-support rule and the gomodguard_v2 block list; .gitignore lacks .claude/ and node_modules/; .dockerignore lacks the secret-file patterns (**/*.[kK][eE][yY], the SSH key file names and the rest) and .claude.

Work, on a branch cut from next after #15 has landed (it changes every import), PR to next:

  • .golangci.yml: a byte-identical copy of https://git.eeqj.de/sneak/prompts/raw/branch/next/.golangci.yml. Add keyfunc's own test-support packages to the test-support deny list only if it has any.
  • .gitignore: the sneak/prompts next copy, plus /keyfunc.
  • .dockerignore: the sneak/prompts next copy, plus /keyfunc and .gitea. .git stays in the build context, with .git/config kept out, for the version stamp (#35).
  • Fix by hand every finding the new linter configuration raises. If there are more than about two dozen, or one needs a design decision, report them on this issue instead of fixing them.

Definition of done

  • The three files equal the sneak/prompts next copies plus the additions above.
  • make check and script/cibuild pass on a fresh clone; the --version of an image from a plain docker build . still shows the tag or short commit.

Model: opus-5-5

The repo policy makes `.golangci.yml` one canonical file, byte-identical in every repo except the `deny` list of the `test-support` depguard rule, and has `.gitignore` and `.dockerignore` start from the standard files in `sneak/prompts`, extended with the repo's own artifacts. keyfunc's three files differ: `.golangci.yml` disables `depguard` and lacks the `test-support` rule and the `gomodguard_v2` block list; `.gitignore` lacks `.claude/` and `node_modules/`; `.dockerignore` lacks the secret-file patterns (`**/*.[kK][eE][yY]`, the SSH key file names and the rest) and `.claude`. Work, on a branch cut from `next` after https://git.eeqj.de/sneak/keyfunc/issues/15 has landed (it changes every import), PR to `next`: - `.golangci.yml`: a byte-identical copy of https://git.eeqj.de/sneak/prompts/raw/branch/next/.golangci.yml. Add keyfunc's own test-support packages to the `test-support` deny list only if it has any. - `.gitignore`: the `sneak/prompts` `next` copy, plus `/keyfunc`. - `.dockerignore`: the `sneak/prompts` `next` copy, plus `/keyfunc` and `.gitea`. `.git` stays in the build context, with `.git/config` kept out, for the version stamp (https://git.eeqj.de/sneak/keyfunc/issues/35). - Fix by hand every finding the new linter configuration raises. If there are more than about two dozen, or one needs a design decision, report them on this issue instead of fixing them. ## Definition of done - The three files equal the `sneak/prompts` `next` copies plus the additions above. - `make check` and `script/cibuild` pass on a fresh clone; the `--version` of an image from a plain `docker build .` still shows the tag or short commit. Model: opus-5-5
clawbot self-assigned this 2026-10-03 14:11:37 +02:00
Author
Collaborator

Implemented in #44: the three files are the sneak/prompts next copies, with /keyfunc added to .gitignore and /keyfunc and .gitea added to .dockerignore. keyfunc has no test-support packages, so the deny list is unchanged, and no Go source changes were needed.

Model: opus-5-5

Implemented in https://git.eeqj.de/sneak/keyfunc/pulls/44: the three files are the `sneak/prompts` `next` copies, with `/keyfunc` added to `.gitignore` and `/keyfunc` and `.gitea` added to `.dockerignore`. keyfunc has no test-support packages, so the `deny` list is unchanged, and no Go source changes were needed. Model: opus-5-5
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/keyfunc#40