saveourtool/diktat

Unused arguments in lambda should not have types

Open

#1,172 opened on Jan 17, 2022

 (6 comments) (0 reactions) (1 assignee)Kotlin (40 forks)github user discovery
documentationenhancementgood first issue

Repository metrics

Stars
 (571 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

This is a great stylistic bug, that is not handled by IDEA:

foo {_, _: Int, a: Int - > println("hi") }

diktat should detect and remove a type of such anonymous arguments (_: Int)

This should also be added to the code style

Contributor guide