Description
Use foreach instead of map with expressions which produce no result.
Before
def functionWithNoReturnValue: Unit = {} Seq(1, 2).map(functionWithNoReturnValue)
After
def functionWithNoReturnValue: Unit = {} Seq(1, 2).foreach(functionWithNoReturnValue)