build/analysis/haslicense: introduce haslicense lint

This linter checks that all go source code has our copyright header

Change-Id: Ib79c0685d09bfe26ef87b29b22654eafabd7dba6
Reviewed-on: https://review.monogon.dev/c/monogon/+/3444
Reviewed-by: Leopold Schabel <leo@monogon.tech>
Tested-by: Jenkins CI
diff --git a/build/analysis/haslicense/BUILD.bazel b/build/analysis/haslicense/BUILD.bazel
new file mode 100644
index 0000000..3637434
--- /dev/null
+++ b/build/analysis/haslicense/BUILD.bazel
@@ -0,0 +1,12 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+
+go_library(
+    name = "haslicense",
+    srcs = ["haslicense.go"],
+    importpath = "source.monogon.dev/build/analysis/haslicense",
+    visibility = ["//visibility:public"],
+    deps = [
+        "//build/analysis/lib",
+        "@org_golang_x_tools//go/analysis",
+    ],
+)