| Tim Windelschmidt | 67f45f8 | 2025-07-29 21:45:00 +0200 | [diff] [blame] | 1 | load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files") |
| 2 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| 3 | |
| 4 | go_library( |
| 5 | name = "staticcheck_lib", |
| 6 | srcs = ["staticcheck.go"], |
| 7 | importpath = "source.monogon.dev/build/analysis/staticcheck", |
| 8 | visibility = ["//build/analysis/staticcheck:__subpackages__"], |
| 9 | deps = [ |
| 10 | "@co_honnef_go_tools//analysis/lint", |
| 11 | "@co_honnef_go_tools//quickfix", |
| 12 | "@co_honnef_go_tools//simple", |
| 13 | "@co_honnef_go_tools//staticcheck", |
| 14 | "@co_honnef_go_tools//stylecheck", |
| 15 | "@co_honnef_go_tools//unused", |
| 16 | "@org_golang_x_tools//go/analysis", |
| 17 | ], |
| 18 | ) |
| 19 | |
| 20 | write_source_files( |
| 21 | name = "staticcheck_analyzers", |
| 22 | files = { |
| 23 | "analyzers.bzl": "//build/analysis/staticcheck/generate_analyzers:analyzers", |
| 24 | }, |
| 25 | ) |