Skip to content

nnsgmsone/linter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MatrixOrigin Linter

This repo contains custom linters developed by MatrixOrigin.

Installation

go install github.com/matrixorigin/linter/cmd/molint@latest

Usage

cd matrixone
go vet -vettool=$(which molint) ./...

Linters

checkrecover

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.

pkgblocklist

Block unwanted packages from importing.

checklog

Check the usage of log package and fmt.Print* api to ensure it is only used by pre-approved methods and functions and unittest.

About

Go linters developed by MatrixOrigin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.4%
  • Makefile 0.6%