package nilness

import "golang.org/x/tools/go/analysis/passes/nilness"

Package nilness inspects the control-flow graph of an SSA function and reports errors such as nil pointer dereferences and degenerate nil pointer comparisons.

Index

Package Files

nilness.go

Constants

const Doc = "" /* 765 byte string literal not displayed */

Variables

var Analyzer = &analysis.Analyzer{
    Name:     "nilness",
    Doc:      Doc,
    Run:      run,
    Requires: []*analysis.Analyzer{buildssa.Analyzer},
}

Directories

PathSynopsis
go/analysis/passes/nilness/cmd
go/analysis/passes/nilness/cmd/nilnessThe nilness command applies the golang.org/x/tools/go/analysis/passes/nilness analysis to the specified packages of Go source code.

Package nilness imports 6 packages (graph).

Version v0.1.8 (latest) | Published Dec 2, 2021 | Platform: linux/amd64 | Updated 3 weeks ago

.
Tools for package owners.