summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2023-12-20 11:57:03 -0800
committerCole Faust <colefaust@google.com>2023-12-20 11:57:03 -0800
commitd4b6231508ace2312004a5520a4e21658b8b1fde (patch)
treef54ce88eb52b9847c1423cf579b8ee5c145ebd8c
parent7b1d45fd7767e3f5c3571fc7de33aa5c85c084ba (diff)
downloadDevCamera-d4b6231508ace2312004a5520a4e21658b8b1fde.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: Ie029f595ad81a101b167d35fc421412af6aedd75
-rw-r--r--Android.bp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 592d598..7843b7e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -20,4 +20,7 @@ android_app {
sdk_version: "current",
min_sdk_version: "21",
srcs: ["src/**/*.java"],
+ lint: {
+ baseline_filename: "lint-baseline.xml",
+ },
}