diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-04-27 14:43:47 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-04-27 14:45:06 +0530 |
commit | 5659ad9863f7ce47962668a473fd29c79d9c710e (patch) | |
tree | fd1f6d0cee7665b078a852fff56544816ed14832 /app | |
parent | f0ac9f97e2551aef14cd023de95da3281f12a5ee (diff) |
feat(build): add Slack's Compose Lints
Diffstat (limited to 'app')
-rw-r--r-- | app/lint-baseline.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml index e0ce6073..d599da9d 100644 --- a/app/lint-baseline.xml +++ b/app/lint-baseline.xml @@ -129,6 +129,17 @@ </issue> <issue + id="ComposeUnstableCollections" + message="The Compose Compiler cannot infer the stability of a parameter if a List<GpgIdentifier> is used in it, even if the item type is stable.
You should use Kotlinx Immutable Collections instead: `identifiers: ImmutableList<GpgIdentifier>` or create an `@Immutable` wrapper for this class: `@Immutable data class IdentifiersList(val items: List<GpgIdentifier>)`
See https://slackhq.github.io/compose-lints/rules/#avoid-using-unstable-collections for more information." + errorLine1=" identifiers: List<GpgIdentifier>," + errorLine2=" ~~~~~~~~~~~~~~~~~~~"> + <location + file="src/main/java/app/passwordstore/ui/pgp/PGPKeyList.kt" + line="36" + column="16"/> + </issue> + + <issue id="UnknownNullness" message="Should explicitly declare type here since implicit type does not specify nullness (Lazy<Array<(GitCommand<out (Any or Any?)> or GitCommand<out (Any or Any?)>?)>>)" errorLine1=" override val commands by unsafeLazy {" |