Reports method declarations with procedure syntax.

It is not recommended for developers to use procedure-like syntax for methods. It is inconsistent, may lead to errors, and will be removed in Scala 3.

The quick-fix converts the declaration from procedure syntax to function syntax.

Example:


  trait Test {
    def method()
  }

After the quick-fix is applied:


  trait Test {
    def method(): Unit
  }

Hint: You can use Analyze / Run Inspection by Name (Ctrl+Alt+Shift+I) to apply this inspection to the whole project.