Repository navigation
Description
Problem
charly/.golangci.yml — the curated AGENTS.md-compliance set — does not enable
nolintlint, so a //nolint directive that has outlived its justification (a stale
suppression) is undetectable. R4/R5 treat a suppression that no longer suppresses
anything as a real defect: it hides nothing yet advertises that something was worked
around, and it masks the next real finding the linter would have raised there.
Evidence (executed, golangci-lint v2.13.2, charly/.golangci.yml)
$ ( cd charly && golangci-lint run --enable=nolintlint ./... )
deploy_compile_parity_test.go:31:62: directive `//nolint:unparam // test helper returns (dir, cleanup); dir kept for symmetry` is unused for linter "unparam" (nolintlint)
plugin_cmd.go:25:40: directive `//nolint:unparam // Kong Run signature requires error; transport.Serve blocks until disconnect` is unused for linter "unparam" (nolintlint)
plugin_executor_reverse_test.go:71:35: directive `//nolint:staticcheck // grpc.Dial is fine for an in-memory bufconn test` is unused for linter "staticcheck" (nolintlint)
plugin_executor_reverse_test.go:113:35: same directive is unused for linter "staticcheck" (nolintlint)
plugin_loader.go:110:1: directive `//nolint:unparam // class is the provider-key dimension …` is unused for linter "unparam" (nolintlint)
plugin_transport.go:41:1: directive `//nolint:unparam // the (error) result is required by the PluginTransport interface …` is unused for linter "unparam" (nolintlint)
6 issues:
* nolintlint: 6
The module carries 18 //nolint directives; 6 are stale. The 12 live ones all
carry an explanation and a specific linter, so nolintlint at its defaults flags only
the unused six — enabling it does not churn the legitimate directives.
Root cause
The curated config enumerates the "broadest curated quality/idiom/duplication
linters" but omits the one linter whose job is suppression legitimacy. Without it, a
stale directive is invisible to CI forever (this is why the six above survived). Not a
missing capability in charly — a gap in the audit config itself.
Intended scope
- Add
nolintlinttocharly/.golangci.yml'slinters.enable(defaults:
allow-unused: false,require-specific: true,require-explanation: true— the
existing 12 directives already satisfy specific+explanation). - Remove the six stale directives (including the trailing empty doc-comment line
where the removal leaves one, which would otherwise tripgofmt). - Re-run
( cd charly && golangci-lint run ./... )→ 0 issues;go test/vet/gofmt.
charly/plugin_loader.go:110 overlaps workflow-ir's pipeline wave
(opencharly/charly, session 7e17b5cf), which independently removes the same
directive — one owner will take it; coordination in the PR.
Owning skill: /charly-internals:go-quality.
Related: opencharly/charly#767 (the curated config now runs in CI — this issue is the
"the curated set is incomplete" sibling).
Activity
aitrawog commentedon Oct 3, 2026
CLAIM — filed from
lint-canonwhile landing#767.The curated set now runs in CI (
#767); this is its COMPLETENESS sibling: withoutnolintlint, a stale//nolintis invisible forever. 6 stale directives measured (one,plugin_loader.go:110, is also inworkflow-ir's wave — coordinating a single owner so the gate is green).Plan: add
nolintlinttocharly/.golangci.yml, remove all 6 stale directives, re-run( cd charly && golangci-lint run ./... )→ 0 issues +go test/vet/gofmt. It lands with the#767lint-governance cutover (same theme, same config), unless the operator wants it split.Agent:
lint-canon· sessionses_eff40584bffe0JqilUWOh4UlTYAssisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 3, 2026
STATUS — folded into
opencharly/charly#769(the curated-config cutover); #769 will close this issue.Both are curated-config governance and the
nolintlintenforcement requires #769's CI fix, so they are one cutover per the hard-cutover policy. #769 addsnolintlinttocharly/.golangci.ymland removes the 6 stale directives this issue reports; its gate is green includingnolintlint(0 issues). Theplugin_loader.go:110overlap withworkflow-iris resolved — #774 owns all 6 (including that one), coordinated on #769.Agent:
lint-canon· sessionses_eff40584bffe0JqilUWOh4UlTYAssisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
fix(lint): enable nolintlint and remove the 6 stale //nolint directiv…
fix(lint)!: run the curated golangci-lint from charly/ + enable nolin…
aitrawog commentedon Oct 4, 2026
RESOLVED — landed in #769 (squash
da779f20), taggedv2026.277.1722.nolintlintis enabled incharly/.golangci.yml(verified present onmain), and the stale//nolintdirectives are removed. This PR removed 5 of the 6 the issue measured; the sixth,charly/plugin_loader.go:110, was independently removed onmainby#778before this branch merged main. The curated run (incl.nolintlint) is0 issueson the final tree. Closing.Agent:
lint-canon· sessionses_eff40584bffe0JqilUWOh4UlTYAssisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)