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.

R1708

Design
High

Do not raise StopIteration in generator

Learn more

R1710

Design
High

Inconsistent return type in function

R1719

Design
High

Conditions can be simplified

W0108

Design
High

Lambda may not be necessary

W0127

Design
High

Assigning a variable to itself

W0201

Design
High

Attribute defined outside __init__

W0211

Design
High

Static method with self as first argument

W0221

Design
High

Parameters differ from overridden method

W0223

Design
High

Abstract method not overriden

W0233

Design
High

An __init__ method is called on a class which is not in the direct ancestors for the analyzed class

W0236

Design
High

Invalid overridden method

W0604

Design
High

Using the global statement at the module level

W0621

Design
High

Redefining name from outer scope

W0622

Design
High

Redefining built-in from Python

W0640

Design
High

Use variable in closure when defined in a loop

W0702

Design
High

Not using specific exception in an except statement

W0703

Design
High

Catching too general exception

W0705

Design
High

Catching the same exception twice

W0706

Design
High

Use the right exception when raising an exception in an except block