Skip to content

Map { it } must return an error #2975

Description

@VovaStelmashchuk
        val data = listOf(0, 1, 2)

        val output = data.map { it }

Expected Behavior of the rule

Detekt return an error. For example map operator don't map

Are Detekt has rule for the case?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions