Showing 1,786 of 2,094 total issues
Function open
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
def open(self):
"""
Ensure an open connection to the email server. Return whether or not a
new connection was required (True or False) or None if an exception
passed silently.
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _date_from_string
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _date_from_string(
Function log_response
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def log_response(
Function format
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def format(
Function _do_update
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _do_update(self, base_qs, using, pk_val, values, update_fields, forced_update):
Function as_sql
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def as_sql(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _save_table
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _save_table(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function create_option
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_option(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function render_change_form
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def render_change_form(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(