| Tim Windelschmidt | 67f45f8 | 2025-07-29 21:45:00 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| 2 | load("//build/analysis/staticcheck:analyzers.bzl", "ANALYZER_NAMES") |
| 3 | |
| 4 | [ |
| 5 | go_library( |
| 6 | name = analyzer, |
| 7 | srcs = ["analyzer.go"], |
| 8 | importpath = "source.monogon.dev/build/analysis/staticcheck/analyzer/" + analyzer, |
| 9 | visibility = ["//visibility:public"], |
| 10 | x_defs = { |
| 11 | "name": analyzer, |
| 12 | }, |
| 13 | deps = ["//build/analysis/staticcheck:staticcheck_lib"], |
| 14 | ) |
| 15 | for analyzer in ANALYZER_NAMES |
| 16 | ] |
| 17 | |
| 18 | go_library( |
| 19 | name = "analyzer", |
| 20 | srcs = ["analyzer.go"], |
| 21 | importpath = "source.monogon.dev/build/analysis/staticcheck/analyzer", |
| 22 | # Gazelle generated target that doesn't do anything, |
| 23 | # disable via incompatible. |
| 24 | target_compatible_with = ["@platforms//:incompatible"], |
| 25 | visibility = ["//visibility:private"], |
| 26 | deps = ["//build/analysis/staticcheck:staticcheck_lib"], |
| 27 | ) |