Skip to content
/ linter Public

A collection of custom Go linters to improve code quality and enforce best practices in your projects.

License

Notifications You must be signed in to change notification settings

yvvlee/linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

自定义go代码linter

安装

#安装linter规则:noiota
go install github.com/yvvlee/linter/cmd/noiota@latest
#安装linter规则: argscount
go install github.com/yvvlee/linter/cmd/argscount@latest

使用

#执行 noiota 检查: 禁止使用iota关键字
noiota ./...

#执行 argscount 检查: 除构造函数外,函数参数个数不超过max,默认5
argscount -max=5  ./...

About

A collection of custom Go linters to improve code quality and enforce best practices in your projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published