Skip to content

IgnoredReturnValue false positives #3043

Description

@yogurtearl

Expected Behavior

Using RxJava 2.2.19

Observable.just(...)
            .take(1)
            .map {...
            }
           .kotlinExtensionMethod()
          .subscribe({... }, {...})

Should be no IgnoredReturnValue detekted becase we use the results of take and map

Observed Behavior

This triggered IgnoredReturnValue on take and map

Context

We have to disable this rule as a workaround.

Your Environment

  • Version of detekt used: 1.12.0
  • Version of Gradle used (if applicable): 6.6.1 (with Android)
  • Operating System and version: macOS 10.15

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions