chore(lint): adopt the canonical .golangci.yml from infra/ci-templates
CI / Lint / Test / Vet (push) Failing after 12s
CI / Mirror to GitHub (push) Skipped

Canonical lives at infra ci-templates/golangci.yml, distributed by the
infra#309 pattern: byte-identical copies, checksum drift gate in infra. Do
not edit this file here -- edit the canonical and run `task ci:sync`.

Verified locally before pushing, not pushed-and-hoped: golangci-lint v2.11.4
against a Go 1.26.1 toolchain (matching CI) reports 0 issues here.

Also applies gofumpt, which this config enables and the golangci-lint v2
default set does not check at all. That gap is why the drift was invisible:
earlier passes ran gofmt, which is weaker. Mechanical, deterministic,
build+vet verified.
This commit is contained in:
2026-09-05 14:42:59 +02:00
parent 1a9be0cfb1
commit 8a27ead91c
7 changed files with 61 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ skills:
func writeModels(t *testing.T, content string) string {
t.Helper()
f := filepath.Join(t.TempDir(), "models.yaml")
require.NoError(t, os.WriteFile(f, []byte(content), 0644))
require.NoError(t, os.WriteFile(f, []byte(content), 0o644))
return f
}
+1
View File
@@ -22,6 +22,7 @@ func (s stubSkill) Tools() []registry.ToolDef {
InputSchema: json.RawMessage(`{"type":"object","properties":{}}`),
}}
}
func (s stubSkill) Handle(ctx context.Context, tool string, args json.RawMessage) (json.RawMessage, error) {
return json.RawMessage(`{"ok":true}`), nil
}