package lostcancel

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

Package lostcancel defines an Analyzer that checks for failure to call a context cancellation function.

Index

Constants

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

Variables

var Analyzer = &analysis.Analyzer{
	Name: "lostcancel",
	Doc:  Doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
		ctrlflow.Analyzer,
	},
}

Source Files

lostcancel.go

Directories

PathSynopsis
go/analysis/passes/lostcancel/cmd
go/analysis/passes/lostcancel/cmd/lostcancelThe lostcancel command applies the golang.org/x/tools/go/analysis/passes/lostcancel analysis to the specified packages of Go source code.
Version
v0.3.0
Published
Nov 9, 2022
Platform
js/wasm
Imports
8 packages
Last checked
5 hours ago

Tools for package owners.