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: "S1001", Run: run, Requires: []*analysis.Analyzer{inspect.Analyzer, generated.Analyzer}, }, Doc: &lint.RawDocumentation{ Title: `Replace for loop with call to copy`, Text: ` Use \'copy()\' for copying elements from one slice to another. For arrays of identical size, you can use simple assignment.`, Before: ` for i, x := range src { dst[i] = x }`, After: `copy(dst, src)`, Since: "2017.1", MergeIf: lint.MergeIfAll, }, })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.