Archive
Cost
-
Prefer single quotes over double quotes for strings, in a consistent way
Why you should care Be consistent with your choice of string quote character within a file. Pick ‘ or ” and stick with it.…
-
Trailing spaces can increase costs
Missing spaces can increase costs This code insight counts one violation each time a line of code is ended with trailing whitespaces. β search…
-
Missing spaces can increase costs
Missing spaces can increase costs This code insight counts one violation each time : Why you should care Additional for Highlight : Business Impacts…
-
Extraneous whitespaces increase costs
Why you should care Avoid extraneous whitespace in the following situations: Business Impacts It is recommended to avoid these in order to ensure the…
-
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…
-
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…
-
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…