Run golangci-lint in CI See https://golangci-lint.run This has already helped uncover some issues, and we should make more use of it. Currently we have to disable one of the default lints, as we have a lot of issues it complains about. I plan to address those one by one and enable it. Until then, put this in place to make sure we don't re-introduce any of the issues we've eliminated so far.
2 files changed, 9 insertions(+), 0 deletions(-) M .builds/alpine.yml A .golangci.yml
M .builds/alpine.yml => .builds/alpine.yml +4 -0
@@ 1,9 1,13 @@ image: alpine/3.22 packages: - go - golangci-lint sources: - https://git.sr.ht/~sircmpwn/core-go tasks: - lint: | cd core-go golangci-lint run - build: | cd core-go go build ./...
A .golangci.yml => .golangci.yml +5 -0