linter

package module
v0.0.0-...-242c3dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL