saveourtool/diktat

Unused arguments in lambda should not have types

Aberta

#1.172 aberto em 17 de jan. de 2022

 (6 comentários) (0 reação) (1 responsável)Kotlin (40 forks)github user discovery
documentationenhancementgood first issue

Métricas do repositório

Stars
 (571 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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

Guia do colaborador