Reports method definitions 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 definition from procedure syntax to function syntax.

Example:


  class Test {
    def method() { }
  }

After the quick-fix is applied:


  class 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.