gost

command module
v0.0.0-...-d38ec11 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 10 Imported by: 0

README ¶

👻 gost

gost is a static checker for Golang. It contains aggressive rules that aren't afraid false-positive as long as diagnostics are informative.

Installation

I recommend to use gost via reviewdog. Complete example configuration:

To run it locally, run following:

# install
go install github.com/seiyab/gost@latest

# run
go vet -vettool="$(which gost)" ./...

Analyzers

name description practical discovery inspired by
closeCloser report that closer isn't closed https://github.com/reviewdog/reviewdog/pull/1692
multipleErrors report suspicious error concatenation https://github.com/opentofu/opentofu/issues/539
noDiscardError report that error is discarded https://github.com/cli/cli/issues/8026
noMutateGlobal reports indirect mutation of global variable https://pkg.go.dev/vuln/GO-2024-2618
openFileFlag report suspicious combination of flags in os.OpenFile() https://github.com/anchore/go-logger/pull/13
preferFilepath report misuse of "path" package where "path/filepath" should be suitable https://github.com/anchore/grype/pull/1767
sliceInitialLength reports confusion between slice length and capacity https://github.com/beego/beego/pull/5631 https://github.com/dominikh/go-tools/issues/112
urlString urlString reports unsafe construction of URL-like string. https://github.com/dominikh/go-tools/issues/730
wrapError report senseless error wrapping

Documentation ¶

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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