Showing 842 of 1,379 total issues
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _cmd_disconnect
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _cmd_disconnect(cmd, raw, no_range, no_hazardous, *args, scope):
Function prompt_for_critical_cmd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def prompt_for_critical_cmd(uuid, _username, _target_name, _cmd_name, _cmd_params, cmd_string):
Function inject_tlm
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def inject_tlm(
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function raise_critical_cmd_error
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def raise_critical_cmd_error(cls, msg_hash, username, target_name, cmd_name, cmd_params, cmd_string):
Avoid deeply nested control flow statements. Open
Open
if (diff_type === DIFF_EQUAL) {
patch.length2 += diff_text.length
start2 += diff_text.length
} else {
empty = false
Function running_script_prompt
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def running_script_prompt(
Function read_all
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def read_all(
Avoid deeply nested control flow statements. Open
Open
if msg_type == "reject_subscription":
raise RuntimeError("Subscription Rejected")
if timeout:
Function create_timeline_activity
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def create_timeline_activity(name, kind, start, stop, data={}, scope=OPENC3_SCOPE):
Avoid deeply nested control flow statements. Open
Open
if timeout:
end_time = time.time()
if (start_time - end_time) > timeout:
raise TimeoutError("No Data Timeout")
# if defined? RunningScript and RunningScript.instance:
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Avoid deeply nested control flow statements. Open
Open
if isinstance(range_check_value, str):
range_check_value = f"'{range_check_value}'"
raise RuntimeError(
Avoid deeply nested control flow statements. Open
Open
if packet == "DISCONNECT":
Logger.info(
f"{self.name}: Protocol {protocol.__class__.__name__} read_packet requested disconnect"
)
return None
Function interface_protocol_cmd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def interface_protocol_cmd(
Avoid deeply nested control flow statements. Open
Open
if len(values) > 0:
MetricModel.set(json, scope=instance.scope)
# Only check whether to update at a set interval
run_time = time.time() - start_time
Function build_cmd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_cmd(
Avoid deeply nested control flow statements. Open
Open
if packet == "STOP":
break
if packet == "STOP":
Function error
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def error(self, message=None, scope=None, user=None, type=LOG, url=None, other=None):