chore: add golangci-lint to CI - #2784
Open
xlgmokha wants to merge 1 commit into
Open
Conversation
xlgmokha
force-pushed
the
xlg/golangci-lint-build
branch
from
September 3, 2026 19:17
0f2c913 to
d160f09
Compare
xlgmokha
force-pushed
the
xlg/golangci-lint-build
branch
from
September 3, 2026 20:44
56d6ba4 to
9030d07
Compare
xlgmokha
marked this pull request as ready for review
September 3, 2026 20:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Chore. This change adds golangci-lint as a tool for running standard
linters across the codebase. It bundles govet, staticcheck, errcheck,
ineffassign, unused and gosec.
What is the current behavior?
モ make lint ./hack/check-go-version.sh Go version 1.27.0 is consistent across all pinned files. go vet ./... tools/bin/staticcheck ./... tools/bin/gosec \ -quiet \ -exclude-generated \ -exclude=G117,G120,G704 \ ./... tools/bin/gosec \ -quiet \ -tests \ -exclude-generated \ -exclude=G101,G104,G117,G120,G704 \ ./... tools/bin/govulncheck ./... | go run ./hack/vulncheck-filter ignoring GO-2026-5004: pgx/v4 SQL injection via dollar-quoted placeholder confusion, no fix available. Transitive via pop/v6. ignoring GO-2026-4518: pgproto3/v2 DoS, no fix available (EOL). Transitive via pgconn v1 + pop/v6.What is the new behavior?
モ make lint ./hack/check-go-version.sh Go version 1.27.0 is consistent across all pinned files. tools/bin/golangci-lint run ./... 0 issues. tools/bin/govulncheck ./... | go run ./hack/vulncheck-filter ignoring GO-2026-5004: pgx/v4 SQL injection via dollar-quoted placeholder confusion, no fix available. Transitive via pop/v6. ignoring GO-2026-4518: pgproto3/v2 DoS, no fix available (EOL). Transitive via pgconn v1 + pop/v6.Additional context