From b15dd47b2e83cf4cab931c45ceff203c0472c82c Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Wed, 20 Dec 2023 11:57:05 -0800 Subject: List baseline_filename on modules that are implititly using it lintable modules currently pick up files named "lint-baseline.xml" to use as the lint baseline implicitly. This is confusing because you could end up using the baseline files in more modules than intended. Lint also has a feature where it requests you remove unnecessary findings from the baseline file, so something could be necessary for one module, but unnecessary for another that accidentally picked up the baseline. We're removing the implicit detection of the baseline file, which requires all modules using it to list the baseline file explicitly. Bug: 272769514 Test: Presubmits Change-Id: Ib640f0642fbb12b96309ce518a505376dda01cb4 --- java/Android.bp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java/Android.bp') diff --git a/java/Android.bp b/java/Android.bp index 613b45148..978605736 100644 --- a/java/Android.bp +++ b/java/Android.bp @@ -62,4 +62,7 @@ android_app { optimize: { proguard_flags_files: ["proguard.flags"], }, + lint: { + baseline_filename: "lint-baseline.xml", + }, } -- cgit v1.2.3-83-g751a