build/analysis: move unparam exclude to generic loop

Change-Id: I6c22fef724bfef326ba90fef9679b3b90c4ed7dd
Reviewed-on: https://review.monogon.dev/c/monogon/+/3982
Reviewed-by: Jan Schär <jan@monogon.tech>
Tested-by: Jenkins CI
diff --git a/build/analysis/BUILD.bazel b/build/analysis/BUILD.bazel
index 91a2f20..4093304 100644
--- a/build/analysis/BUILD.bazel
+++ b/build/analysis/BUILD.bazel
@@ -189,13 +189,6 @@
             "external/com_github_sbezverk_nfproxy": "third_party",
         },
     },
-    "unparam": {
-        "exclude_files": {
-            "external/": "third_party",
-            "bazel-out/": "generated_output",
-            "cgo/": "cgo",
-        },
-    },
 }
 
 # All analyzers that should be disabled for external, generated or cgo code.
@@ -216,6 +209,7 @@
     "errcmp",
     "gofmt",
     "haslicense",
+    "unparam",
 ] + ALL_STATICCHECK_ANALYZERS
 
 # We override the variable with itself unioned with the other