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.

      R0124

      Design
      Medium

      Comparison with same value

      Learn more

      R0202

      Design
      Medium

      No classmethod decorator

      R0914

      Design
      Medium

      Too many local variables

      R0915

      Design
      Medium

      Too many statements, split your functions in smaller functions

      R0916

      Design
      Medium

      Too many boolean expressions in if statement

      R1703

      Design
      Medium

      The if statement can be replaced with a return and a boolean expression

      R1705

      Design
      Medium

      Unnecessary else after return

      R1716

      Design
      Medium

      Simplify chained comparison between the operands

      R1720

      Design
      Medium

      Unnecessary else after raise

      R1721

      Design
      Medium

      Unnecessary use of a comprehension

      R1723

      Design
      Medium

      Unnecessary elif after break

      R1724

      Design
      Medium

      Unnecessary elif after continue

      W0107

      Design
      Medium

      Unnecessary pass statement

      W0125

      Design
      Medium

      Conditional statement with a constant value

      W0150

      Design
      Medium

      return statement in finally block may swallow exception

      W0212

      Design
      Medium

      Access to a protected member of a client class

      W0222

      Design
      Medium

      Signature is different than in the implemented interface or in an overridden method

      W0231

      Design
      Medium

      __init__ method from base class is not called in inherited class

      W0235

      Design
      Medium

      Useless super delegation

      W0642

      Design
      Medium

      Invalid assignment to cls or self

      W1113

      Design
      Medium

      Keyword argument before variable positional arguments list

      W1114

      Design
      Medium

      Positional arguments appear to be out of order

      R1709

      Design
      Medium

      https://vald-phoenix.github.io/pylint-errors/plerr/errors/refactoring/R1709

      R1726

      Design
      Medium

      Boolean expression can be simplified