Archive
Product
-
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…
-
Alias agreement for imports can reduce costs
Alias agreement for imports can reduce costs This code insight counts one violation each time a one of the following library is not imported…
-
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 *…
-
Multiple imports on the same line can increase costs
Multiple imports on the same line can increase costs This code insight counts one violation if an “import” not preceded by a “from” contains…
-
Methods with too many parameters can be complex
Why you should care For developers, it is important to consider that having too many arguments tends make the function excessively complex. This increases…
-
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…
-
Using “is” for anything but singleton can increase costs
Using “is” for anything but singleton can increase costs Count one violation each time one of the operand of is (or is not )…
-
‘Not…is’ syntax can be unreadable
‘Not…is’ syntax can be unreadable Count one violation each time the not … is syntax is encountered. bad some_list = None if not some_list…
-
Explicit comparison to singleton can be unreadable
Explicit comparison to singleton can be unreadable This code insight count one violation each time a condition use an explicit comparison to ” none…