summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2023-12-20 11:57:02 -0800
committerCole Faust <colefaust@google.com>2023-12-20 11:57:02 -0800
commitb07899ff0ae407963d9c745cf97c994ca06f8c29 (patch)
treee465a2eb9fa131221638ce7dd7633329089e526b
parentb454fe7937082619a4c673dd883f489b83c5a7d3 (diff)
downloadsetupdesign-b07899ff0ae407963d9c745cf97c994ca06f8c29.tar.gz
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
-rw-r--r--Android.bp10
1 files 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",
+ },
}