linter

package
v0.0.0-...-832d8e4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package linter contains linter that checks the call os.Exit function from main and warns if such call will be found. It can be called from multichecker.Main(...*analysis.Analyzer) of golang.org/x/tools/go/analysis/multichecker

multichecker.Main(linter.ExitInMainAnalyzer)

Index

Constants

This section is empty.

Variables

View Source
var ExitInMainAnalyzer = &analysis.Analyzer{
	Name:     "exitinmain",
	Doc:      "check for os.Exit call in func main in package main",
	Requires: []*analysis.Analyzer{inspect.Analyzer},
	Run:      run,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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