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
commit6f1b1d3013fad63f768850953b971579061fca1b (patch)
tree646789ff250a934f7ca0b24d5ae2577dc033d84d
parentc62ec3e614cd1cb24ffb4ffaa59985b2820adc78 (diff)
downloadsetupcompat-6f1b1d3013fad63f768850953b971579061fca1b.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: Ibf84772602764d301da1f406d921c1b45d3b914d
-rw-r--r--Android.bp10
1 files 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",
+ },
}