summaryrefslogtreecommitdiff
path: root/api/ApiDocs.bp
diff options
context:
space:
mode:
author Anton Hansson <hansson@google.com> 2023-10-27 14:57:30 +0000
committer Anton Hansson <hansson@google.com> 2023-11-02 14:15:01 +0000
commit25c8ca63bf892dcf1c2d0f09a6d82091b91f1a22 (patch)
tree38fbec2f635f77a0f2e758ef0922e6ec4de12003 /api/ApiDocs.bp
parent57f63527391f64de9bcb2f7a4acbb9a29a59b07f (diff)
Stop disabling Metalava quality checks
These checks have been disabled since the initial integration of metalava in the build system. Stop disabling them, but baseline existing issues. For the checks that are disabled for good reason, leave a comment that explains why. Bug: 306806877 Test: m checkapi Change-Id: Ica5c28f798b4aee0ae3722a0bd176bcc621d994e
Diffstat (limited to 'api/ApiDocs.bp')
-rw-r--r--api/ApiDocs.bp12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/ApiDocs.bp b/api/ApiDocs.bp
index 5744bdfd4b28..bcfb68ffd04d 100644
--- a/api/ApiDocs.bp
+++ b/api/ApiDocs.bp
@@ -30,6 +30,18 @@ stubs_defaults {
":android-test-mock-sources",
":android-test-runner-sources",
],
+ flags: [
+ // These errors are suppressed in the doc stubs as it isn't easy to suppress them.
+ // They remain unsuppressed/active in the "main" stubs build (the jar stubs).
+ // These can be removed when either a) all the issues have been fixed or
+ // b) these reporting of these issues is gated behind api lint being enabled in metalava.
+ "--hide BroadcastBehavior",
+ "--hide DeprecationMismatch",
+ "--hide MissingPermission",
+ "--hide RequiresPermission",
+ "--hide SdkConstant",
+ "--hide Todo",
+ ],
create_doc_stubs: true,
write_sdk_values: true,
}