treewide: run gofmt -s and enable linter
Change-Id: I90b8ef48c955dccfddc5bbc0a57205b7da844b60
Reviewed-on: https://review.monogon.dev/c/monogon/+/3828
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/build/analysis/BUILD.bazel b/build/analysis/BUILD.bazel
index b97a58e..f55a2ad 100644
--- a/build/analysis/BUILD.bazel
+++ b/build/analysis/BUILD.bazel
@@ -91,7 +91,7 @@
"//build/analysis/checkcompilerdirectives",
"//build/analysis/noioutil",
"//build/analysis/importsort",
- # "//build/analysis/gofmt", # TODO(tim): Enable when formatted
+ "//build/analysis/gofmt",
]
# NOGO_CONFIG_OVERRIDES contains the overrides for nogo to exempt specific files
@@ -213,6 +213,7 @@
"returnerrcheck",
"hash",
"errcmp",
+ "gofmt",
] + ALL_STATICCHECK_ANALYZERS
# We override the variable with itself unioned with the other