Archive
Software Resiliency
-
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…
-
Too many classes with missing destructors can be unproductive
Too many classes with missing destructors can be unproductive This code insight counts a violation each time too many classes with missing destructors are…
-
Too many classes with missing constructors can be risky
Too many classes with missing constructors can be risky This code insight counts a violation each time C++ has too many classes with missing…
-
Incorrect dynamic class definition can be non-resilient
Incorrect dynamic class definition can be non-resilient This count insight counts a violation in this non-compliant code example, the function A<int>::f2() is ill-formed because…
-
Macro definitions cause resiliency issues
Macro definitions cause resiliency issues This code insight counts one violation each time a macro without parameters defines a literal constant. Literal constants are…