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/BUILD.bazel b/build/analysis/BUILD.bazel
index f55a2ad..371336a 100644
--- a/build/analysis/BUILD.bazel
+++ b/build/analysis/BUILD.bazel
@@ -92,6 +92,7 @@
"//build/analysis/noioutil",
"//build/analysis/importsort",
"//build/analysis/gofmt",
+ # "//build/analysis/haslicense", #TODO(tim): Enable when fixed
]
# NOGO_CONFIG_OVERRIDES contains the overrides for nogo to exempt specific files
@@ -214,6 +215,7 @@
"hash",
"errcmp",
"gofmt",
+ "haslicense",
] + ALL_STATICCHECK_ANALYZERS
# We override the variable with itself unioned with the other