Skip to content

ci: replace goreportcard with golangci-lint - #22

Merged
andrespd99 merged 5 commits into
mainfrom
ci/golangci-lint
Jul 13, 2026
Merged

andrespd99 merged 5 commits into
mainfrom
ci/golangci-lint

Conversation

@andrespd99

Copy link
Copy Markdown
Owner

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

  • CI workflow — add a lint job using golangci/golangci-lint-action@v6
  • README badges — add CI, Release, Latest Release, golangci-lint, and Go Version badges (the goreportcard badge was dead)

Verification

go build ./...   ✓
go vet ./...     ✓
go test ./...    ✓

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.
Comment thread .github/workflows/ci.yml Fixed
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.
Comment thread .github/workflows/ci.yml Fixed
- 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)
@andrespd99
andrespd99 merged commit b7daabb into main Jul 13, 2026
5 checks passed
@andrespd99
andrespd99 deleted the ci/golangci-lint branch July 13, 2026 16:32
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.

2 participants