Repeat metalava errors at the end to make it easy to find them
Also suppress "unresolved import" messages.
Bug: 161374683
Exempt-From-Owner-Approval: Cherry-picking from master
Test: Introduce a lint error, run "m update-api" and make sure the
error shows up at the end.
Change-Id: Ib5250f7f9593dc4f89f9e7f6dc614e230a966e8f
Merged-in: Ib5250f7f9593dc4f89f9e7f6dc614e230a966e8f
diff --git a/java/droiddoc.go b/java/droiddoc.go
index b564fea..862f2bb 100644
--- a/java/droiddoc.go
+++ b/java/droiddoc.go
@@ -1510,7 +1510,9 @@
cmd.Flag("--no-banner").
Flag("--color").
Flag("--quiet").
- Flag("--format=v2")
+ Flag("--format=v2").
+ FlagWithArg("--repeat-errors-max ", "10").
+ FlagWithArg("--hide ", "UnresolvedImport")
return cmd
}