RiemaLabs / modular-indexer-light

A fully user-verified execution layer for Bitcoin's meta-protocols. (light indexer)
https://eprint.iacr.org/2024/408
57 stars 21 forks source link

ci: enable commitlint, goimports and golangci-lint #39

Closed WadeZhouRiema closed 4 months ago

WadeZhouRiema commented 4 months ago

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.

ghost commented 4 months ago

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.