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
Warning

Comparison with same value

Learn more

R0202

Design
Warning

No classmethod decorator

R0914

Design
Warning

Too many local variables

R0915

Design
Warning

Too many statements, split your functions in smaller functions

R0916

Design
Warning

Too many boolean expressions in if statement

R1702

Design
Warning

Too many nested blocks

R1703

Design
Warning

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

R1705

Design
Warning

Unnecessary else after return

R1716

Design
Warning

Simplify chained comparison between the operands

R1720

Design
Warning

Unnecessary else after raise

R1721

Design
Warning

Unnecessary use of a comprehension

R1723

Design
Warning

Unnecessary elif after break

R1724

Design
Warning

Unnecessary elif after continue

W0107

Design
Warning

Unnecessary pass statement

W0125

Design
Warning

Conditional statement with a constant value

W0150

Design
Warning

return statement in finally block may swallow exception

W0212

Design
Warning

Access to a protected member of a client class

W0222

Design
Warning

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

W0231

Design
Warning

__init__ method from base class is not called in inherited class

W0235

Design
Warning

Useless super delegation

W0642

Design
Warning

Invalid assignment to cls or self

W1113

Design
Warning

Keyword argument before variable positional arguments list

W1114

Design
Warning

Positional arguments appear to be out of order

R1709

Design
Warning

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

R1726

Design
Warning

Boolean expression can be simplified

We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.