Showing 224 of 1,036 total issues
Function pull_table
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def pull_table(
- Create a ticketCreate a ticket
Function debug
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def debug(verbose, bot, proxy, no_browsers=False, exp_config=None):
- Create a ticketCreate a ticket
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function revoke
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def revoke(workers, qualification, by_name, reason, sandbox):
- Create a ticketCreate a ticket
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self, app_id, output, verbose, exp_config):
- Create a ticketCreate a ticket
Function create_participant
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_participant(worker_id, hit_id, assignment_id, mode, entry_information=None):
- Create a ticketCreate a ticket
Function _deploy_in_mode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _deploy_in_mode(mode, verbose, log, app=None, archive=None):
- Create a ticketCreate a ticket
Function wait_for_text
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def wait_for_text(driver, el_id, value, removed=False, timeout=10):
- Create a ticketCreate a ticket
Function debug
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def debug(verbose, bot, proxy, no_browsers=False, exp_config=None):
- Create a ticketCreate a ticket
Function receive_message
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def receive_message(
- Create a ticketCreate a ticket
Function deploy_sandbox_shared_setup
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def deploy_sandbox_shared_setup(
- Create a ticketCreate a ticket
Function compensate_worker
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def compensate_worker(self, worker_id, email, dollars, notify=True):
- Create a ticketCreate a ticket
Function error_page
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def error_page(
- Create a ticketCreate a ticket
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function compensate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def compensate(recruiter, worker_id, email, dollars, sandbox):
- Create a ticketCreate a ticket
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
- Create a ticketCreate a ticket
Function register
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def register(self, key, type_, synonyms=None, sensitive=False, validators=None):
- Create a ticketCreate a ticket
Function build_image
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_image(
- Create a ticketCreate a ticket
Function receive_message
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def receive_message(
- Create a ticketCreate a ticket
Function in_realtime
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def in_realtime(self, callback=None):
exp_start, exp_end = self.experiment.usable_replay_range
replay_offset = time.time()
current = self.experiment._replay_time_index
if current < exp_start:
- Read upRead up
- Create a ticketCreate a ticket
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"