facebook pixelPython Static Analysis Rules
BACK TO LIST

Python rules

The Codiga Static Analysis engine is powered by the best open-source tools to check your Python code. Make sure your code does not have any security issues and follow design and other best practices. Automate your code reviews today and merge with confidence with Codiga.

      C0321

      Error prone
      High

      More than one statement on a single line

      Learn more

      C1801

      Error prone
      High

      Use len() without explicit argument

      E0102

      Error prone
      High

      Detect functions that already exist

      E0103

      Error prone
      High

      break or continue used outside a loop

      E0104

      Error prone
      High

      Return outside function

      E0105

      Error prone
      High

      The yield keyword is used outside a function

      E0107

      Error prone
      High

      Use of operator that does not exist

      E0110

      Error prone
      High

      Abstract class instantiation attempt

      E0111

      Error prone
      High

      Bad argument passed to reversed()

      E0117

      Error prone
      High

      A nonlocal variable does not have an attached name somewhere in the parent scopes.

      E0237

      Error prone
      High

      Assigning an attribute not defined in the class slots

      E0239

      Error prone
      High

      Detect class that inherit non-classes

      E0242

      Error prone
      High

      Value conflict with __slots__

      E0301

      Error prone
      High

      __iter__ returns non-iterator

      E0302

      Error prone
      High

      The special method __int__ should have 0 parameter

      E0603

      Error prone
      High

      Undefined variable name referenced in __all\__

      E0604

      Error prone
      High

      Invalid object referenced in __all__

      E0633

      Error prone
      High

      Attempting to unpack a non-sequence

      E0704

      Error prone
      High

      The raise statement is not inside an except clause

      E0710

      Error prone
      High

      Raising a new style class which doesn't inherit from BaseException

      E0711

      Error prone
      High

      NotImplemented raised and should raise NotImplementedError instead

      E1003

      Error prone
      High

      Another argument than the current class is given as first argument of the super builtin

      E1125

      Error prone
      High

      Missing mandatory keyword argument in function call

      E1126

      Error prone
      High

      Sequence type is indexed with an invalid type

      E1129

      Error prone
      High

      Context manager doesn't implement __enter__ and __exit__

      E1130

      Error prone
      High

      Unary operand is used on an object which does not support this type of operation.

      E1132

      Error prone
      High

      Got multiple values for keyword argument in function call

      E1134

      Error prone
      High

      Non-mapping value is used in a mapping context

      E1136

      Error prone
      High

      Value is unsubscriptable

      E1139

      Error prone
      High

      Invalid metaclass used

      E1307

      Error prone
      High

      Incorrect format string

      E1310

      Error prone
      High

      The argument to a str.{l,r,}strip call contains a duplicate character

      R0123

      Error prone
      High

      Invalid literal comparison

      R1707

      Error prone
      High

      Misplacing comma that creates a tuple

      W0104

      Error prone
      High

      Statement have no effect

      W0124

      Error prone
      High

      With statement returns multiple values

      W0126

      Error prone
      High

      Conditional statement with potentially wrong function or method call due to missing parentheses

      W0632

      Error prone
      High

      Possible unbalanced tuple unpacking with sequence

      W1116

      Error prone
      High

      Argument of isinstance is not a type

      W1302

      Error prone
      High

      Invalid format string

      W1303

      Error prone
      High

      Missing format() argument key

      W1403

      Error prone
      High

      Implicit string concatenation found in list

      R1727

      Error prone
      High

      Boolean value has always the same value

      E1131

      Error prone
      High

      Emitted when a binary arithmetic operation between two operands is not supported.