CA023 - Unneeded parentheses


Parentheses that are not needed should be removed. This helps enforcing a consistent coding style

Scope Instruction
Status Enabled
Severity Suggestion
Applicability All
Score 30

Example of violation

if (z > 3) then z := (z - 5) end


Remove the parenthesis that are not needed.

In the example, it simply becomes: if z > 3 then z := z - 5 end