R0124
Comparison with same value
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.
Comparison with same value
Does not use self
No classmethod decorator
Class inherits from object
Cannot have defined parameters for properties
Cyclic import
Similar lines detection
Too many ancestors
Too many instance attributes
Too few public methods
Too many public methods
Too many return statements
Too many branches
Too many arguments for a function or method
Too many local variables
Too many statements, split your functions in smaller functions
Too many boolean expressions in if statement
Multiple calls of isinstance calls can be merged
Too many nested blocks
The if statement can be replaced with a return and a boolean expression
Redefining argument with local name
Unnecessary else after return
Consider using ternary operator
Do not raise StopIteration in generator
Inconsistent return type in function
Useless return at end of function or method
Simplify chained comparison between the operands
Consider using a dictionary comprehension
Consider using a set comprehension
Conditions can be simplified
Unnecessary else after raise
Unnecessary use of a comprehension
Unnecessary elif after break
Unnecessary elif after continue
Unnecessary pass statement
Lambda may not be necessary
Useless else on loop
Conditional statement with a constant value
Assigning a variable to itself
return statement in finally block may swallow exception
Attribute defined outside __init__
Static method with self as first argument
Access to a protected member of a client class
Parameters differ from overridden method
Signature is different than in the implemented interface or in an overridden method
Abstract method not overriden
__init__ method from base class is not called in inherited class
An __init__ method is called on a class which is not in the direct ancestors for the analyzed class
Useless super delegation
Invalid overridden method
Module imports itself
Using the global statement at the module level
Redefining name from outer scope
Redefining built-in from Python
Use variable in closure when defined in a loop
Invalid assignment to cls or self
Not using specific exception in an except statement
Catching too general exception
Catching the same exception twice
Use the right exception when raising an exception in an except block
Keyword argument before variable positional arguments list
Positional arguments appear to be out of order
https://vald-phoenix.github.io/pylint-errors/plerr/errors/refactoring/R1709
Boolean expression can be simplified
Using deprecated class
Using deprecated module
Useless parent or super() delegation
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.