saveourtool/diktat

Unused arguments in lambda should not have types

Ouverte

#1 172 ouverte le 17 janv. 2022

 (6 commentaires) (0 réaction) (1 personne assignée)Kotlin (40 forks)github user discovery
documentationenhancementgood first issue

Métriques du dépôt

Stars
 (571 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur