Reports unnecessary parentheses in expressions, types, and patterns.

Parentheses are considered unnecessary if the semantics of the program remains unchanged when the parentheses are removed.

Use the checkboxes below to customize the behaviour of the inspection.

Parentheses are considered clarifying if they separate an infix expression, type element, or pattern as a part of a larger infix element.

Example:


  val x = (3)

After the quick-fix is applied:


  val x = 3