Reports methods with result type Unit that do not have parameter clauses.

Methods with a result type of Unit are only executed for their side effects and, by the convention, methods with side effects have at least one (empty) parameter clause.

The quick-fix adds an empty parameter clause.

Example:


  def test: Unit = ()

After the quick-fix is applied:


  def test(): Unit = ()