Showing 1,036 of 1,036 total issues
Function compensate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def compensate(recruiter, worker_id, email, dollars, sandbox):
- Create a ticketCreate a ticket
Function debug
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def debug(verbose, bot, proxy, no_browsers=False, exp_config=None):
- Create a ticketCreate a ticket
Function _deploy_in_mode
has 5 arguments (exceeds 4 allowed). Consider refactoring. 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
def wait_for_text(driver, el_id, value, removed=False, timeout=10):
- Create a ticketCreate a ticket
Function receive_message
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def receive_message(
- Create a ticketCreate a ticket
Function error_page
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def error_page(
- Create a ticketCreate a ticket
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
- Create a ticketCreate a ticket
Function create_participant
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def create_participant(worker_id, hit_id, assignment_id, mode, entry_information=None):
- Create a ticketCreate a ticket
Function deploy_sandbox_shared_setup
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def deploy_sandbox_shared_setup(
- Create a ticketCreate a ticket
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, app_id, output, verbose, exp_config):
- Create a ticketCreate a ticket
Function register
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def register(self, key, type_, synonyms=None, sensitive=False, validators=None):
- Create a ticketCreate a ticket
Function receive_message
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def receive_message(
- Create a ticketCreate a ticket
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
- Create a ticketCreate a ticket
Function build_image
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def build_image(
- Create a ticketCreate a ticket
Function mousedownEventListener
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function mousedownEventListener(event) {
if (clicked === false) {
yNow = Math.round(stimulusYSize / PPU);
// Training phase
- 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"
Further reading
Function hits
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def hits(self, app=None, sandbox=False):
"""Lists all hits on a recruiter."""
service = self.load_service(sandbox)
hits = self._current_hits(service, app)
formatted_hit_list = []
- 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"
Further reading
Function in_realtime
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. 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"
Further reading
Function export_db_uri
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def export_db_uri(id, db_uri, local, scrub_pii):
# Create the data package if it doesn't already exist.
subdata_path = os.path.join("data", id, "data")
try:
os.makedirs(subdata_path)
- 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"
Further reading
Function login
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def login():
next_url = request.form.get("next", request.args.get("next"))
next_url = (
next_url if next_url and is_safe_url(next_url) else url_for("dashboard.index")
)
- 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"
Further reading
Function as_dict
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def as_dict(self, include_sensitive=False):
d = {}
for key in self.types:
if key not in self.sensitive or include_sensitive:
try:
- 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"