Skip to content

Commit b15dd47

Browse files
committed
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: Ib640f0642fbb12b96309ce518a505376dda01cb4
1 parent 64beb0a commit b15dd47

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

java/Android.bp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,7 @@ android_app {
6262
optimize: {
6363
proguard_flags_files: ["proguard.flags"],
6464
},
65+
lint: {
66+
baseline_filename: "lint-baseline.xml",
67+
},
6568
}

0 commit comments

Comments
 (0)