Skip to content

Disable exhaustruct_v5 and noinlineerr in the default golangci-lint configuration - #2

Merged
Fly-Playgroud merged 1 commit into
mainfrom
lint/deprecated-successors
Sep 6, 2026
Merged

Fly-Playgroud merged 1 commit into
mainfrom
lint/deprecated-successors

Conversation

@Fly-Playgroud

@Fly-Playgroud Fly-Playgroud commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Why

Linting the first Satellite with struct literals in it (headlesslab/fetch, wand #39) against the default configuration produced two classes of findings the configuration never meant to raise:

  • exhaustruct_v5 (15 findings, one of them on a zip.FileHeader literal that would need all 15 fields). golangci-lint v2.13.2 deprecates exhaustruct in favour of exhaustruct_v5; the migrated file disables only the old name, so default: all keeps the successor on. Same oversight the wsl / wsl_v5 hand edit already corrected.
  • noinlineerr (24 findings). Added to golangci-lint after upstream froze; it rejects the if err := f(); err != nil form that upstream's code and the four snapshot-imported Satellites of #38 use throughout, and ADR-0001's verbatim import cannot restyle them.

What

.golangci.yml: exhaustruct_v5 disabled next to exhaustruct, noinlineerr disabled, header comment lists both as hand edits four and five.

The smoke module has no struct literals or inline errors, so the smoke run cannot show the difference; the fetch Satellite's lint job will, once its repository exists and pins the merge commit.

…onfiguration

exhaustruct is deprecated in golangci-lint v2.13.2 in favour of
exhaustruct_v5; the migrated file disabled only the old name, so
default: all kept the successor on, the same oversight the wsl /
wsl_v5 hand edit already corrected. noinlineerr, added after upstream
froze, rejects the if err := f(); err != nil form that upstream's code
and the snapshot-imported Satellites use throughout; ADR-0001's verbatim
import cannot restyle them.

Found by the fetch Satellite (wand #39), the first module linted against
this configuration with struct literals in it.
@Fly-Playgroud
Fly-Playgroud merged commit 736a5f1 into main Sep 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant