This repo contains custom linters developed by MatrixOrigin.
go install github.com/matrixorigin/linter/cmd/molint@latest
cd matrixone
go vet -vettool=$(which molint) ./...
As required by our error handling rules, "You should not recover any panics unless it is at a few well defined places". This linter helps to enforce that.
It will fail when checking the frontend folder as recover() calls there are not currently marked as approved.
Block unwanted packages from importing.
Check the usage of log
package and fmt.Print*
api to ensure it is only used by pre-approved methods and functions and unittest.