The code contains too many unnecessary COMPUTE

Why you should care

COMPUTE verb should be restricted to usage in combination with the ROUNDED clause or a function call or for complex computing expression.

How we detect

CAST Highlight counts one occurrence each time each time a COMPUTE instruction that do not contains ROUNDED or FUNCTION keywords contains only one operator among +, – or *

References

Coming soon…
5362

About CAST and Highlight’s Code Insights

Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.