Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gox
command
gox is a strict static analyzer for Go.
|
gox is a strict static analyzer for Go. |
|
internal
|
|
|
astutil
Package astutil contains small helpers shared by multiple analyzers.
|
Package astutil contains small helpers shared by multiple analyzers. |
|
pkg
|
|
|
analyzer
Package analyzer defines the core types every gox analyzer implements.
|
Package analyzer defines the core types every gox analyzer implements. |
|
analyzer/analyzertest
Package analyzertest provides helpers for unit-testing individual analyzers without going through the loader / `go list` pipeline.
|
Package analyzertest provides helpers for unit-testing individual analyzers without going through the loader / `go list` pipeline. |
|
analyzers/banany
Package banany forbids `any` / `interface{}` in declarations without an `// any-ok: <reason>` annotation on the same line (or on a doc comment).
|
Package banany forbids `any` / `interface{}` in declarations without an `// any-ok: <reason>` annotation on the same line (or on a doc comment). |
|
analyzers/bodyclose
Package bodyclose reports HTTP responses whose Body is never closed.
|
Package bodyclose reports HTTP responses whose Body is never closed. |
|
analyzers/contextcheck
Package contextcheck enforces context propagation.
|
Package contextcheck enforces context propagation. |
|
analyzers/errcheck
Package errcheck reports calls to functions returning `error` whose error value is silently dropped.
|
Package errcheck reports calls to functions returning `error` whose error value is silently dropped. |
|
analyzers/errorlint
Package errorlint reports incorrect handling of error values.
|
Package errorlint reports incorrect handling of error values. |
|
analyzers/exhaustive
Package exhaustive enforces switch exhaustiveness over enums and sealed interfaces defined in the analyzed packages.
|
Package exhaustive enforces switch exhaustiveness over enums and sealed interfaces defined in the analyzed packages. |
|
analyzers/forcetypeassert
Package forcetypeassert forbids type assertions that would panic on failure.
|
Package forcetypeassert forbids type assertions that would panic on failure. |
|
analyzers/goroutine
Package goroutine reports `go` statements whose lifetime is not bound to a visible coordination primitive.
|
Package goroutine reports `go` statements whose lifetime is not bound to a visible coordination primitive. |
|
analyzers/httptimeout
Package httptimeout reports HTTP calls and clients that have no timeout configured.
|
Package httptimeout reports HTTP calls and clients that have no timeout configured. |
|
analyzers/namedargs
Package namedargs requires call sites to name their arguments when two or more consecutive parameters share the same type.
|
Package namedargs requires call sites to name their arguments when two or more consecutive parameters share the same type. |
|
analyzers/noglobals
Package noglobals forbids package-level mutable `var` declarations.
|
Package noglobals forbids package-level mutable `var` declarations. |
|
analyzers/shadow
Package shadow reports variable shadowing introduced by `:=`.
|
Package shadow reports variable shadowing introduced by `:=`. |
|
baseline
Package baseline implements the "ignore pre-existing issues" workflow.
|
Package baseline implements the "ignore pre-existing issues" workflow. |
|
cache
Package cache provides a per-package incremental cache for gox analyzer results.
|
Package cache provides a per-package incremental cache for gox analyzer results. |
|
loader
Package loader parses and type-checks Go packages using only the standard library.
|
Package loader parses and type-checks Go packages using only the standard library. |
Click to show internal directories.
Click to hide internal directories.
