From 0df103ae7108f7561923f043961805efe9f0eed4 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Fri, 17 Jul 2020 15:11:24 -0700 Subject: [PATCH] Repeat metalava errors at the end to make it easy to find them Also suppress "unresolved import" messages. Bug: 161374683 Test: Introduce a lint error, run "m update-api" and make sure the error shows up at the end. Change-Id: Ib5250f7f9593dc4f89f9e7f6dc614e230a966e8f --- java/droiddoc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/droiddoc.go b/java/droiddoc.go index 08865b666..190a05237 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -1519,7 +1519,9 @@ func metalavaCmd(ctx android.ModuleContext, rule *android.RuleBuilder, javaVersi cmd.Flag("--no-banner"). Flag("--color"). Flag("--quiet"). - Flag("--format=v2") + Flag("--format=v2"). + FlagWithArg("--repeat-errors-max ", "10"). + FlagWithArg("--hide ", "UnresolvedImport") return cmd }