Showing 1,379 of 1,379 total issues
Method _wait_packet
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _wait_packet(check,
target_name,
packet_name,
num_packets,
timeout,
Avoid deeply nested control flow statements. Open
Open
raise ArgumentError, "#{@name}: maximum must be a Float but is a #{@range.last.class}" unless Float === @range.last or Integer === @range.last
Method build_cmd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def build_cmd(target_name, packet_name, params = {}, range_checking = true, raw = false, check_required_params = true)
Method initialize
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(target_name = nil, packet_name = nil, default_endianness = :BIG_ENDIAN, description = nil, buffer = nil, item_class = PacketItem)
Avoid deeply nested control flow statements. Open
Open
raise ArgumentError, "#{@name}: maximum must be a Integer but is a #{@range.last.class}" unless Integer === @range.last
Function handle_exception
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def handle_exception(
Avoid deeply nested control flow statements. Open
Open
if method == "open_file_dialog": # Simply return the only file
files = files[0]
return files
Function parse_file
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def parse_file(
Avoid deeply nested control flow statements. Open
Open
raise ArgumentError, "#{@name}: minimum must be a Integer but is a #{@range.first.class}" unless Integer === @range.first
Avoid deeply nested control flow statements. Open
Open
for theFilename in input:
file = _get_storage_file(
f"tmp/{theFilename}", scope=RunningScript.instance.scope
)
Avoid deeply nested control flow statements. Open
Open
if type == 'reject_subscription'
raise "Subscription Rejected"
end
Method raise_critical_cmd_error
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def self.raise_critical_cmd_error(msg_hash, username, target_name, cmd_name, cmd_params, cmd_string)
Avoid deeply nested control flow statements. Open
Open
if @interface_or_router == 'INTERFACE'
@metric.set(name: 'interface_tlm_total', value: @count, type: 'counter')
else
@metric.set(name: 'router_cmd_total', value: @count, type: 'counter')
end
Method set_comm_timeouts
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def self.set_comm_timeouts(handle, read_interval_timeout = 4294967295, read_total_timeout_multiplier = 0, read_total_timeout_constant = 0, write_total_timeout_multiplier = 0, write_total_timeout_constant = 0)
Avoid deeply nested control flow statements. Open
Open
break if @cancel_thread
Method write_all_entries
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def write_all_entries(reducer_state, plw, type, target_name, stored, throttle = nil)
Method write_entry
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def write_entry(state, plw, type, target_name, packet_name, stored)
Avoid deeply nested control flow statements. Open
Open
if value > green_low
limits_state = :BLUE
else
limits_state = :GREEN_LOW
end
Method _log_cmd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _log_cmd(target_name, cmd_name, cmd_params, raw, no_range, no_hazardous)
Avoid deeply nested control flow statements. Open
Open
if timeout
end_time = Time.now
if (start_time - end_time) > timeout
raise Timeout::Error, "No Data Timeout"
end