summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2023-12-20 11:57:06 -0800
committerCole Faust <colefaust@google.com>2023-12-21 17:35:42 +0000
commit4af146d89bb4ebcb721da15d55db2df8083e8ee3 (patch)
tree6d7fc5c42101e9be820cec95757a837b2c532970
parent7995392f93da99f3d8c214b57db78883e99a19a9 (diff)
downloadConfigInfrastructure-4af146d89bb4ebcb721da15d55db2df8083e8ee3.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: Ifb5bdc9d500e62ca6ede552c74bd39a6db842681 Merged-In: Ifb5bdc9d500e62ca6ede552c74bd39a6db842681
-rw-r--r--framework/Android.bp9
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/Android.bp b/framework/Android.bp
index 3869ba5..2629228 100644
--- a/framework/Android.bp
+++ b/framework/Android.bp
@@ -18,15 +18,18 @@ package {
java_sdk_library {
name: "framework-configinfrastructure",
- srcs: [ "java/**/*.java" ],
+ srcs: ["java/**/*.java"],
defaults: ["framework-module-defaults"],
- permitted_packages: [ "android.provider" ],
+ permitted_packages: ["android.provider"],
apex_available: [
"com.android.configinfrastructure",
],
min_sdk_version: "UpsideDownCake",
sdk_version: "module_current",
impl_library_visibility: [
- "//packages/modules/ConfigInfrastructure:__subpackages__"
+ "//packages/modules/ConfigInfrastructure:__subpackages__",
],
+ lint: {
+ baseline_filename: "lint-baseline.xml",
+ },
}