Skip to content

PR #22d: strip redundant test-file nolints → zero nolint:errcheck tree-wide#33

Merged
randomizedcoder merged 1 commit into
mainfrom
strip-test-nolints
Jun 16, 2026
Merged

PR #22d: strip redundant test-file nolints → zero nolint:errcheck tree-wide#33
randomizedcoder merged 1 commit into
mainfrom
strip-test-nolints

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

Summary

PR #22d — strip the last redundant //nolint:errcheck (the finale of the #22 cleanup).

errcheck is excluded for _test.go in .golangci.yml / .golangci-comprehensive.yml (path: "_test\.go"errcheck), so the ~115 //nolint:errcheck directives scattered across 18 test files were pure noise — they suppressed a linter that never runs there. Stripped them all (the explicit _ = discards stay; they're fine with errcheck off in tests). Also reworded pkg/xsync/pool.go's package doc so it no longer quotes the literal directive.

The acceptance gate

$ grep -rn 'nolint:errcheck' --include='*.go' . | grep -v vendor
(no output)

Zero nolint:errcheck anywhere in the tree.

Testing

  • go vet + gofmt -l . clean; binary-blob guard clean.
  • go test … -tags 'dest_kafka dest_nats dest_nsq dest_valkey dest_s3parquet' ./...entire suite green.
  • Both golangci-lint tiers PASS.

This completes the whole effort

🤖 Generated with Claude Code

errcheck is excluded for *_test.go in .golangci*.yml, so the ~115
//nolint:errcheck directives in test files were pure noise — strip them
all (the explicit '_ =' discards stay; they're fine with errcheck off in
tests). Also reword pkg/xsync/pool.go's package doc so it no longer quotes
the literal directive.

After this, 'grep -rn nolint:errcheck' over non-vendor .go returns
nothing tree-wide. Both golangci-lint tiers pass; full suite green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@randomizedcoder randomizedcoder merged commit 423f1f1 into main Jun 16, 2026
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