use-append |
Use %s.append(%s) instead of %s.
|
Emitted when code extends list by a single argument instead of appending it. |
use-integral-division |
Use integral division //.
|
Emitted when the code uses float division and converts the result to int. |
use-isdecimal |
Use isdecimal to test if string contains a number.
|
Emitted when the code uses isdigit or isnumeric. |
no-loop-else |
Do not use %s loop with else.
|
Emitted when the code contains loop with else block. |
use-elif |
Use elif.
|
Emitted when the code contains else: if construction instead of elif. Might return a false positive if the code mixes tabs and spaces. |
at-most-one-iteration-for-loop |
The for loop makes %s.
|
Emitted when a for loop would always perform at most one iteration. |
no-repeated-op |
Use %s instead of repeated %s in %s.
|
Emitted when the code contains repeated adition/multiplication instead of multiplication/exponentiation. |
redundant-arithmetic |
Redundant arithmetic: %s
|
Emitted when there is redundant arithmetic (e.g. +0, *1) in an expression. |
use-augmented-assign |
Use augmented assignment: '%s %s= %s'
|
Emitted when an assignment can be simplified by using its augmented version. |
do-not-multiply-mutable |
Do not multiply list with mutable content.
|
Emitted when a list with mutable contents is being multiplied. |
redundant-elif |
Use else instead of elif.
|
Emitted when the condition in elif is negation of the condition in the if. |
unreachable-else |
Unreachable else.
|
Emitted when the else branch is unreachable due to totally exhaustive conditions before. |
no-is-bool |
Use '%s' directly rather than as '%s'.
|
Emitted when the is operator is used with a bool value. |
use-ord-letter |
Use "%s" instead of using the magical constant %i.
|
Emitted when the code uses a magical constant instead of a string literal. |
use-literal-letter |
Remove the call to 'ord' and compare to the string directly "%s" instead of using the magical constant %i. Careful, this may require changing the comparison operator.
|
Emitted when the code uses a magical constant instead of a string literal in a comparison. |
use-early-return |
Use early return.
|
Emitted when a long block of code is followed by an else that just returns, breaks or continues. |