Detects using
map
with expressions which produce no result. If possible, this inspection suggest to replace such
map
call with
foreach
one.
Before:
List(0, 1).map(println(_))
After:
List(0, 1).foreach(println(_))