Archive
Code Reliability
-
While Loops are more productive than For Loops
While Loops are more productive than For Loops This code insight searches all the artifacts having for loops which can be simplified to a…
-
Constructors with a return value can be unproductive in PHP
Constructors with a return value can be unproductive in PHP This code insight counts a violation each time the script has a constructor with…
-
Having empty statements can be unproductive in PHP
Having empty statements can be unproductive in PHP This code insight counts a violation each time an empty statement is detected in PHP <?php…
-
Too many functions with default value parameters are unproductive
Too many functions with default value parameters are unproductive This code insight counts a violation each time parameter has a default value “class CastTest…
-
Having an assignment to “this” can be unproductive
Having an assignment to “this” can be unproductive This code insight counts a violation each time the PHP script has an assignment to “this”…
-
Using “instanceOf” causes Production Risk
How we detect This code insight counts a violation each time an “instanceOf” is utilized public final class BadInstanceOf { public static void doSomething(Animal…
-
Switch cases without ending breaks are hard to understand
Why you should care Although Switch cases do not require ending breaks after the default statement, It is recommended to end every branch with…
-
Too many global variables can be unproductive
Why you should care Global variables should be encapsulated in a class and doing so can make code more productive. Business Impacts CAST Recommendations…
-
Memory leaks in C++ is a huge production risk
Memory leaks in C++ is a huge production risk This code insight counts a violation each time a Call free or delete to free…
-
Inconditional branches are unproductive in C++
Inconditional branches are unproductive in C++ This code insight Count one violation each time one of the following keywords is encountered : continue, goto…