Inspectopedia
 
2024.3

Redundant parentheses in no-arg method call

Warning
New
Last modified: 03 December 2024

Reports no-arg method calls with parentheses.

Example:

A quick-fix is available to remove the redundant parentheses. After the quick-fix is applied, the result looks like this:

Inspired by 'RuboCop'