all.bash: use unparam
unparam wasn't being used previously - it now runs when running
all.bash.
Change-Id: I71ee838b817ce1eb32c0fb60b34c5ef4c7cd4d25
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/718554
CI-Result: Cloud Build <devtools-proctor-result-processor@system.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/all.bash b/all.bash
index e6e7134..aeed4ef 100755
--- a/all.bash
+++ b/all.bash
@@ -125,6 +125,7 @@
check_bad_migrations
check_staticcheck
check_misspell
+ check_unparam
}
usage() {
@@ -139,6 +140,7 @@
migrations - (lint) check migration sequence numbers
misspell - (lint) run misspell on source files
staticcheck - (lint) run staticcheck on source files
+ unparam - (lint) run unparam on source files
prettier - (lint, nonstandard) run prettier on .js and .css files.
templates - (lint, nonstandard) run go-template-lint on templates
EOUSAGE
@@ -171,6 +173,7 @@
staticcheck) check_staticcheck ;;
prettier) run_prettier ;;
templates) check_templates ;;
+ unparam) check_unparam ;;
*)
usage
exit 1