summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Anton Hansson <hansson@google.com> 2023-10-04 15:53:49 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-10-04 15:53:49 +0000
commitddbfdb7f7e3c4660b51bedbabdfd8ab6d4b840d6 (patch)
treeafeb11707ae681e5fa9de35e3d1e0558084919cc
parentce12ea8f95257a18b693ae3205e63703eb577f89 (diff)
parentb06bb5762e7075e1368046e630e1a924c9f792ba (diff)
Merge "Support passing lint baseline to doclava" into main
-rw-r--r--java/droiddoc.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/droiddoc.go b/java/droiddoc.go
index d5547d05c..87588f377 100644
--- a/java/droiddoc.go
+++ b/java/droiddoc.go
@@ -136,6 +136,9 @@ type DroiddocProperties struct {
// At some point, this might be improved to show more warnings.
Todo_file *string `android:"path"`
+ // A file containing a baseline for allowed lint errors.
+ Lint_baseline *string `android:"path"`
+
// directory under current module source that provide additional resources (images).
Resourcesdir *string
@@ -665,6 +668,10 @@ func (d *Droiddoc) doclavaDocsFlags(ctx android.ModuleContext, cmd *android.Rule
ImplicitOutput(android.PathForModuleOut(ctx, String(d.properties.Todo_file)))
}
+ if String(d.properties.Lint_baseline) != "" {
+ cmd.FlagWithInput("-lintbaseline ", android.PathForModuleSrc(ctx, String(d.properties.Lint_baseline)))
+ }
+
if String(d.properties.Resourcesdir) != "" {
// TODO: should we add files under resourcesDir to the implicits? It seems that
// resourcesDir is one sub dir of htmlDir