pkg/

directory
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: BSD-3-Clause

Directories

Path Synopsis
Package analyzer defines the core types every gox analyzer implements.
Package analyzer defines the core types every gox analyzer implements.
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).
bodyclose
Package bodyclose reports HTTP responses whose Body is never closed.
Package bodyclose reports HTTP responses whose Body is never closed.
contextcheck
Package contextcheck enforces context propagation.
Package contextcheck enforces context propagation.
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.
errorlint
Package errorlint reports incorrect handling of error values.
Package errorlint reports incorrect handling of error values.
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.
forcetypeassert
Package forcetypeassert forbids type assertions that would panic on failure.
Package forcetypeassert forbids type assertions that would panic on failure.
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.
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.
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.
noglobals
Package noglobals forbids package-level mutable `var` declarations.
Package noglobals forbids package-level mutable `var` declarations.
shadow
Package shadow reports variable shadowing introduced by `:=`.
Package shadow reports variable shadowing introduced by `:=`.
Package baseline implements the "ignore pre-existing issues" workflow.
Package baseline implements the "ignore pre-existing issues" workflow.
Package cache provides a per-package incremental cache for gox analyzer results.
Package cache provides a per-package incremental cache for gox analyzer results.
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.

Jump to

Keyboard shortcuts

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