Function calls without inputs 
ID | STAT-3 |
Title | Add empty parentheses to function calls without input arguments. |
Priority | Recommended |
Severity level | 9 |
Description | Add empty parentheses to function calls without input arguments. |
Rationale | This helps to emphasize the fact that they are function calls and not variables or properties. |
Avoid:
x = rand * 2;
Instead use:
x = rand() * 2;