From b07899ff0ae407963d9c745cf97c994ca06f8c29 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: Ia0fd37552da2f660b89a95833384253d4acd5ef5 --- Android.bp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Android.bp b/Android.bp index 7a42f5f..6b6bf56 100644 --- a/Android.bp +++ b/Android.bp @@ -50,7 +50,10 @@ android_library { min_sdk_version: "19", optimize: { proguard_flags_files: ["proguard.flags"], - } + }, + lint: { + baseline_filename: "lint-baseline.xml", + }, } // @@ -65,5 +68,8 @@ android_library { "strings/res", ], min_sdk_version: "19", - sdk_version: "current" + sdk_version: "current", + lint: { + baseline_filename: "lint-baseline.xml", + }, } -- cgit v1.2.3