| Tim Windelschmidt | 67f45f8 | 2025-07-29 21:45:00 +0200 | [diff] [blame] | 1 | // Copyright The Monogon Project Authors. |
| 2 | // SPDX-License-Identifier: Apache-2.0 | ||||
| 3 | |||||
| 4 | package staticcheck | ||||
| 5 | |||||
| 6 | import ( | ||||
| 7 | "fmt" | ||||
| 8 | |||||
| 9 | "source.monogon.dev/build/analysis/staticcheck" | ||||
| 10 | ) | ||||
| 11 | |||||
| 12 | var ( | ||||
| 13 | name string | ||||
| 14 | Analyzer = staticcheck.Analyzers[name] | ||||
| 15 | ) | ||||
| 16 | |||||
| 17 | func init() { | ||||
| 18 | if Analyzer == nil { | ||||
| 19 | panic(fmt.Sprintf("staticcheck analyzer %q not found", name)) | ||||
| 20 | } | ||||
| 21 | } | ||||