From 6f1b1d3013fad63f768850953b971579061fca1b Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Wed, 20 Dec 2023 11:57:02 -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: Ibf84772602764d301da1f406d921c1b45d3b914d --- Android.bp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Android.bp b/Android.bp index effa39b..ebc63c5 100644 --- a/Android.bp +++ b/Android.bp @@ -102,7 +102,10 @@ android_library { sdk_version: "current", optimize: { proguard_flags_files: ["proguard.flags"], - } + }, + lint: { + baseline_filename: "lint-baseline.xml", + }, } android_library { @@ -126,5 +129,8 @@ android_library { sdk_version: "current", optimize: { proguard_flags_files: ["proguard.flags"], - } + }, + lint: { + baseline_filename: "lint-baseline.xml", + }, } -- cgit v1.2.3