package sa5012
import "honnef.co/go/tools/staticcheck/sa5012"
Index ¶
Variables ¶
var Analyzer = SCAnalyzer.Analyzer
var SCAnalyzer = lint.InitializeAnalyzer(&lint.Analyzer{ Analyzer: &analysis.Analyzer{ Name: "SA5012", Run: run, FactTypes: []analysis.Fact{new(evenElements)}, Requires: []*analysis.Analyzer{buildir.Analyzer}, }, Doc: &lint.RawDocumentation{ Title: "Passing odd-sized slice to function expecting even size", Text: "" /* 301 byte string literal not displayed */, Since: "2020.2", Severity: lint.SeverityError, MergeIf: lint.MergeIfAny, }, })
Source Files ¶
sa5012.go
- Version
- v0.6.0-0.dev
- Published
- Aug 13, 2024
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- now –
Tools for package owners.