Archive
Software Resiliency
-
Whitespaces are a Production Risk
Whitespaces are a Production Risk Count one violation each time a format replacement field contains a whitespace. bad print “{ what} is {how it…
-
String concatenation in loop causes production risks
String concatenation in loop causes production risks This code insight counts one violation each time an operator + or += is used with a…
-
Java-Style getters and setters can increase production risks
Java-Style getters and setters can increase production risks This code insight counts one violation each time a class define getter or setter (one of…
-
Wildcard(*) imports can increase production risks.
Wildcard(*) imports can increase production risks. This code insight counts one violation each time a wildcard import is used. Violations pattern is: import *…
-
Illegal exceptions can cause Production Risks
Risky catches increase production risks This code insight counts one violation each time a class whose name is ending with Exception or Error is…
-
Handling Exceptions should be explicit
How we detect This code insight counts one violation each time : bad def divide(a, b): try: result = a / b except: result…
-
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…