diff options
author | Tor Norbye <tnorbye@google.com> | 2022-06-02 14:28:26 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2022-06-03 20:32:53 +0000 |
commit | ce699a138403a79f08236450b27f96365cb80fe0 (patch) | |
tree | ad4181aed5525ccd46e55fef3a6ead6c2a5a44f8 /compose-ide-plugin | |
parent | 4b732ed7fdebfddf2ff7bfb74e3e470a4570c966 (diff) | |
download | idea-ce699a138403a79f08236450b27f96365cb80fe0.tar.gz |
Update baselines to allowlist existing by-lazy usages
Test: the _lint_test bazel targets
Bug: None
Change-Id: I1ea9f97237650fe82bdcb1d8cc710df14f7756ff
Diffstat (limited to 'compose-ide-plugin')
-rw-r--r-- | compose-ide-plugin/BUILD | 2 | ||||
-rw-r--r-- | compose-ide-plugin/lint_baseline.xml | 36 |
2 files changed, 37 insertions, 1 deletions
diff --git a/compose-ide-plugin/BUILD b/compose-ide-plugin/BUILD index 2cef7276ea4..0b642bdc149 100644 --- a/compose-ide-plugin/BUILD +++ b/compose-ide-plugin/BUILD @@ -5,7 +5,7 @@ iml_module( name = "intellij.android.compose-ide-plugin", srcs = ["src"], iml_files = ["intellij.android.compose-ide-plugin.iml"], - lint_baseline = "//tools/base/lint:studio-checks/empty_baseline.xml", + lint_baseline = "lint_baseline.xml", resources = ["resources"], visibility = ["//visibility:public"], # do not sort: must match IML order diff --git a/compose-ide-plugin/lint_baseline.xml b/compose-ide-plugin/lint_baseline.xml new file mode 100644 index 00000000000..172900071a3 --- /dev/null +++ b/compose-ide-plugin/lint_baseline.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<issues format="5" by="lint 7.4.0-dev"> + + <issue + id="AvoidByLazy" + message="Avoid `by lazy` for simple lazy initialization"> + <location + file="src/com/android/tools/compose/code/completion/ComposeCompletionContributor.kt" + line="188"/> + </issue> + + <issue + id="AvoidByLazy" + message="Avoid `by lazy` for simple lazy initialization"> + <location + file="src/com/android/tools/compose/debug/render/ComposeStateObjectClassRenderer.kt" + line="74"/> + </issue> + + <issue + id="AvoidByLazy" + message="Avoid `by lazy` for simple lazy initialization"> + <location + file="src/com/android/tools/compose/debug/render/ComposeStateObjectClassRenderer.kt" + line="78"/> + </issue> + + <issue + id="AvoidByLazy" + message="Avoid `by lazy` for simple lazy initialization"> + <location + file="src/com/android/tools/compose/debug/render/ComposeStateObjectRendererProviderBase.kt" + line="36"/> + </issue> + +</issues> |