Skip to content

Add golangci-lint config with goconst.ignore-tests#22

Merged
andrew merged 1 commit into
mainfrom
add-golangci-config
May 22, 2026
Merged

Add golangci-lint config with goconst.ignore-tests#22
andrew merged 1 commit into
mainfrom
add-golangci-config

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented May 22, 2026

Test tables tend to repeat literal version strings and package names across independent cases, and extracting those into shared constants makes assertions harder to read. Set goconst to skip test files so the linter stays useful for production code without that noise.

Test tables tend to repeat literal version strings and package names across independent cases, and extracting those into shared constants makes assertions harder to read. Set goconst to skip test files so the linter stays useful for production code without that noise.
@andrew andrew merged commit 4642170 into main May 22, 2026
5 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