I haven't been proactively writing with the linter enabled.
codebase needs some cleaning, many errors are just "not checking the error return value"
golangci-lint run
Something went wrong. Try again.
A container registry that uses the AT Protocol for manifest storage and S3 for blob storage. atcr.io
Something went wrong. Try again.
Run golangci-lint on the codebase. Fix errcheck 🙃 #4
Closed
evan.jarrett.net
Closed opened by
evan.jarrett.net
This comment was deleted.
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.6.0
go generate ./...
golangci-lint run -c .golangci.yml
I currently get 56 issues:
- errcheck: 36
- gofmt: 1
- govet: 1
- staticcheck: 11
- unused: 7
The point of this ticket was to see about improving the overall linting of the codebase, and come up with a sane linter config. There is little information here, but I left it open ended for anyone to help.