Skip to content

1.1.0-SNAPSHOT Suggestion: reword Lint error to be more clear #314

@JvmName

Description

@JvmName

The lint short-text in the 1.1.0 snapshot is a bit confusing.

Currently, it is Always apply an AutoDispose scope before subscribing within defined scoped elements., which I think is going to confuse a lot of people, especially if they don't think about Rx streams/subscriptions in terms of "scopes" (I know I don't!).

Suggested rewrite: Missing Disposable handling: Apply AutoDispose or cache the Disposable instance manually

PS: I don't know if it's intentional, but val d = Observable.just(1).subscribe() causes a linting error; however, as far as Lint should concerned, everything is being handled correctly. Just my 2 cents.

PPS: the long text has a typo -- handling it's subscription should be handling its subscription

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions