Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = SCAnalyzer.Analyzer
View Source
var SCAnalyzer = lint.InitializeAnalyzer(&lint.Analyzer{ Analyzer: &analysis.Analyzer{ Name: "SA4024", Run: run, Requires: []*analysis.Analyzer{inspect.Analyzer}, }, Doc: &lint.RawDocumentation{ Title: `Checking for impossible return value from a builtin function`, Text: `Return values of the \'len\' and \'cap\' builtins cannot be negative. See https://golang.org/pkg/builtin/#len and https://golang.org/pkg/builtin/#cap. Example: if len(slice) < 0 { fmt.Println("unreachable code") }`, Since: "2021.1", Severity: lint.SeverityWarning, MergeIf: lint.MergeIfAny, }, })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.