analyser

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyser = &analysis.Analyzer{
	Name: "paniccheck",
	Doc:  "reports panic() calls without comments",
	Run:  run,
}

Functions

func CheckPanicCalls

func CheckPanicCalls(pass *analysis.Pass, node ast.Node, commentLines sets.Set[int]) bool

Types

type Result

type Result struct {
	IssueLines []int // Lines with issues, empty if no issues.
}

Jump to

Keyboard shortcuts

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