Current code has some places which can not pass the lint checker, so we don't apply golangci-lint yet.
Please change the command go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest -h in .husky/pre-commit to go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run if needs to use golangci-lint to check code lint.
I drafted this PR first, I believe the first step for setting up CI/CD is to make some changes to our current Makefile, with a new rule called make ci, to dry-run all the checkers locally.
Current code has some places which can not pass the lint checker, so we don't apply
golangci-lint
yet. Please change the commandgo run github.com/golangci/golangci-lint/cmd/golangci-lint@latest -h
in .husky/pre-commit togo run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run
if needs to usegolangci-lint
to check code lint.