Repository navigation
ci: replace goreportcard with golangci-lint - #22
Merged
Merged
Conversation
Go Report Card has been sunset. Add a golangci-lint job to the CI workflow and replace the goreportcard badge with a golangci-lint badge in the README.
Use install-mode: goinstall so golangci-lint is built with the project's Go version (1.26.2) instead of the prebuilt binary (go1.24). Remove the static golangci-lint badge — the CI badge already reflects lint status.
Pins golangci/golangci-lint-action@v6 to commit 55c2c1448f86e01eaae002a5a3a9624417608d84 to satisfy CodeQL unpinned-action warning.
- errcheck: check Encode/Write return values in test helpers - unused: remove dead parseInt func from cmd/project.go - ineffassign: use var declaration for tokenStatus in me.go and serve.go - staticcheck: replace deprecated WithCredentialsFile with WithCredentialsJSON (reads file explicitly, per security guidance)
- Replace deprecated option.WithCredentialsJSON with option.WithAuthCredentialsFile(option.ServiceAccount, ...) per staticcheck - Check error return value of json.Encoder.Encode in rest_test.go (errcheck)
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.
Summary
Go Report Card has been sunset after 10+ years. The maintainers recommend golangci-lint as the de-facto standard for Go code quality.
Changes
lintjob usinggolangci/golangci-lint-action@v6Verification