b/a/noioutil: add an analyzer prohibiting use of ioutil
The ioutil package is deprecated and a tree-wide migration was already
done. This analyzer ensures that there can be no users of this package
in the future.
Change-Id: Ica6cd01ce5cb919d6f236225deeaff70b8e2800b
Reviewed-on: https://review.monogon.dev/c/monogon/+/451
Reviewed-by: Sergiusz Bazanski <serge@monogon.tech>
diff --git a/build/analysis/noioutil/BUILD.bazel b/build/analysis/noioutil/BUILD.bazel
new file mode 100644
index 0000000..1770430
--- /dev/null
+++ b/build/analysis/noioutil/BUILD.bazel
@@ -0,0 +1,9 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+
+go_library(
+ name = "go_default_library",
+ srcs = ["noioutil.go"],
+ importpath = "source.monogon.dev/build/analysis/noioutil",
+ visibility = ["//visibility:public"],
+ deps = ["@org_golang_x_tools//go/analysis:go_default_library"],
+)