Skip to content

Fix golangci-lint goconst, mnd, and gocognit warnings#4

Merged
andrew merged 1 commit intomainfrom
fix/lint-issues
Mar 29, 2026
Merged

Fix golangci-lint goconst, mnd, and gocognit warnings#4
andrew merged 1 commit intomainfrom
fix/lint-issues

Conversation

@andrew
Copy link
Copy Markdown
Contributor

@andrew andrew commented Mar 18, 2026

Extract repeated string literals (OS names, ABI identifiers) into package-level constants, replace magic numbers in SplitN/len calls with named constants, and reduce cognitive complexity of compose() by extracting per-ecosystem helper functions.

Resolves all 26 issues reported by golangci-lint with goconst, mnd, and gocognit checks enabled.

Extract repeated string literals into named constants, replace magic
numbers in SplitN calls with named constants, and reduce cognitive
complexity of compose() by extracting per-ecosystem helpers.
@andrew andrew merged commit 626c04e into main Mar 29, 2026
2 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