R1708
Do not raise StopIteration in generator
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.
Do not raise StopIteration in generator
Inconsistent return type in function
Conditions can be simplified
Lambda may not be necessary
Useless else on loop
Assigning a variable to itself
Attribute defined outside __init__
Static method with self as first argument
Parameters differ from overridden method
Abstract method not overriden
An __init__ method is called on a class which is not in the direct ancestors for the analyzed class
Invalid overridden method
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
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
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.