build/analysis: enable importsort, reformat
Change-Id: I64fd8803264138e02d016d4751bc23bc56a02521
Reviewed-on: https://review.monogon.dev/c/monogon/+/495
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
Reviewed-by: Mateusz Zalega <mateusz@monogon.tech>
Reviewed-by: Leopold Schabel <leo@nexantic.com>
diff --git a/build/analysis/BUILD.bazel b/build/analysis/BUILD.bazel
index 938867f..0cbb906 100644
--- a/build/analysis/BUILD.bazel
+++ b/build/analysis/BUILD.bazel
@@ -42,5 +42,6 @@
# soft-reflow well.
"@com_github_corverroos_commentwrap//:go_default_library",
"//build/analysis/noioutil:go_default_library",
+ "//build/analysis/importsort:go_default_library",
],
)
diff --git a/build/analysis/nogo_config.json b/build/analysis/nogo_config.json
index e7f1f04..6da3a03 100644
--- a/build/analysis/nogo_config.json
+++ b/build/analysis/nogo_config.json
@@ -88,5 +88,10 @@
"exclude_files": {
"external/": "third_party"
}
+ },
+ "importsort": {
+ "exclude_files": {
+ "external/": "third_party"
+ }
}
}