facebook pixelCodiga Analysis Python Rules, severity error , category design
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
Error

Do not raise StopIteration in generator

Learn more

R1710

Design
Error

Inconsistent return type in function

R1719

Design
Error

Conditions can be simplified

W0108

Design
Error

Lambda may not be necessary

W0127

Design
Error

Assigning a variable to itself

W0201

Design
Error

Attribute defined outside __init__

W0211

Design
Error

Static method with self as first argument

W0221

Design
Error

Parameters differ from overridden method

W0223

Design
Error

Abstract method not overriden

W0233

Design
Error

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

W0236

Design
Error

Invalid overridden method

W0604

Design
Error

Using the global statement at the module level

W0621

Design
Error

Redefining name from outer scope

W0622

Design
Error

Redefining built-in from Python

W0640

Design
Error

Use variable in closure when defined in a loop

W0702

Design
Error

Not using specific exception in an except statement

W0703

Design
Error

Catching too general exception

W0705

Design
Error

Catching the same exception twice

W0706

Design
Error

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

W0246

Design
Error

Useless parent or super() delegation