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