Files
Marius van Niekerk b85eae5a79 feat: adopt Go 1.27 JSON v2 semantics (#1475)
Moves AgentsView to Go 1.27 and adopts native `encoding/json/v2`
behavior
throughout. This is a clean migration with no JSON v1 compatibility or
checkpoint fallback paths.

Typed Huma routes now share JSON v2 request and response semantics with
the
rest of the application. OpenAPI continues to describe token usage as
arbitrary JSON. JSONL rewrite paths retain untouched values as raw JSON,
so
large integers stay exact, while stored map output is deterministic
where bytes
define artifact identity.

The Go 1.27 audit also adopts generic methods, assignment-context
inference,
promoted fields in struct literals, `errors.AsType`, and related
standard-library simplifications. Build images, local tooling,
documentation,
and reviewer guidance now require Go 1.27. golangci-lint is pinned to
v2.13.0,
which can analyze the new language level.
2026-08-21 15:27:56 -07:00

48 lines
792 B
YAML

version: "2"
run:
tests: true
go: "1.27"
build-tags:
- fts5
linters:
default: none
enable:
- errcheck
- govet
- ineffassign
- modernize
- staticcheck
- unused
settings:
errcheck:
check-type-assertions: false
check-blank: false
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- errcheck
path: _test\.go
- linters:
- modernize
text: "omitzero:"
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$