Showing 1,379 of 1,379 total issues
Function packet_define_item
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def packet_define_item(self, item, format_string, read_conversion, write_conversion, id_value):
Avoid deeply nested control flow statements. Open
Open
if instance.logging_enabled and instance.filename: # Logging and file opened
# Cycle based on total time logging
if (
instance.cycle_time
and (utc_now - instance.start_time).total_seconds() > instance.cycle_time
Function info
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def info(self, message=None, scope=None, user=None, type=LOG, url=None, other=None):
Avoid deeply nested control flow statements. Open
Open
if not value.isascii():
value = "0x" + simple_formatted(value)
else:
value = f"'{str(value)}'"
else:
Function debug
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def debug(self, message=None, scope=None, user=None, type=LOG, url=None, other=None):
Function warn
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def warn(self, message=None, scope=None, user=None, type=LOG, url=None, other=None):
Avoid deeply nested control flow statements. Open
Open
if len(indexes_to_clear) > 0:
for index in indexes_to_clear:
instance.cleanup_offsets[index] = None
instance.cleanup_times[index] = None
instance.cleanup_offsets = [x for x in instance.cleanup_offsets if x is not None]
Avoid deeply nested control flow statements. Open
Open
if metadata:
item["metadata"] = self.head_object(bucket=bucket, key=aws_item["Key"])
files.append(item)
Function check_bit_offset_and_size
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def check_bit_offset_and_size(cls, read_or_write, given_bit_offset, given_bit_size, data_type, buffer):
Function map_target_to_interface
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def map_target_to_interface(
Function fatal
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def fatal(self, message=None, scope=None, user=None, type=LOG, url=None, other=None):
Function build_log_data
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_log_data(self, log_level, message, user=None, type=None, url=None, other=None):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Avoid deeply nested control flow statements. Open
Open
if String === value
value = value.clone
elsif Array === value
value = Marshal.load(Marshal.dump(value))
end
Function parse_loop
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def parse_loop(self, io, yield_non_keyword_lines, remove_quotes_arg, size, rx):
Avoid deeply nested control flow statements. Open
Open
if type == 'disconnect'
if json_hash['reason'] == 'unauthorized'
raise "Unauthorized"
end
end
Avoid deeply nested control flow statements. Open
Open
if input == "REJECTED":
raise RuntimeError("Critical Cmd Rejected")
return input
Avoid deeply nested control flow statements. Open
Open
break if @cancel_thread
Method 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)
Avoid deeply nested control flow statements. Open
Open
if String === value
value = value.clone
elsif Array === value
value = Marshal.load(Marshal.dump(value))
end