Inspectopedia
 
2024.3

Unused unary operator

Warning
New
Last modified: 03 December 2024

Reports unary operators for number types on unused expressions.

Unary operators break previous expression if they are used without braces. As a result, mathematical expressions spanning multi lines can be misleading.

Example: