Showing 842 of 1,379 total issues
Method get_cmd_time
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def get_cmd_time(target_name = nil, command_name = nil, manual: false, scope: $openc3_scope, token: $openc3_token)
authorize(permission: 'cmd_info', target_name: target_name, packet_name: command_name, manual: manual, scope: scope, token: token)
if target_name and command_name
target_name = target_name.upcase
command_name = command_name.upcase
Method offline_access_needed
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def offline_access_needed(manual: false, scope: $openc3_scope, token: $openc3_token)
authorize(permission: 'system', manual: manual, scope: scope, token: token)
begin
authorize(permission: 'script_view', manual: manual, scope: scope, token: token)
rescue
Method setup_thread_body
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setup_thread_body(objects)
first_object = objects[0]
# The goal of this mode is to determine if we are starting with files or from
# realtime
Method sync_with_bucket
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.sync_with_bucket(bucket, scope:)
# Build catalogs
local_catalog = build_local_catalog(scope: scope)
remote_catalog = build_remote_catalog(bucket, scope: scope)
Function _execute_wait
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _execute_wait(
Function _openc3_script_wait_tolerance
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _openc3_script_wait_tolerance(
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function write_array
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def write_array(
Function _openc3_script_wait_tolerance
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _openc3_script_wait_tolerance(
Function _execute_wait
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _execute_wait(
Function __init__
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Method _openc3_script_wait_implementation_tolerance
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _openc3_script_wait_implementation_tolerance(target_name, packet_name, item_name, value_type, expected_value, tolerance, timeout, polling_rate = DEFAULT_TLM_POLLING_RATE, scope: $openc3_scope, token: $openc3_token, &block)
Method initialize
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
start_char = nil,
read_strip_characters = true,
read_enable_escaping = true,
write_enable_escaping = true,
end_char = 0xC0,
Method initialize
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(write_port_name,
read_port_name,
baud_rate,
parity,
stop_bits,
Method initialize
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
hostname,
write_dest_port,
read_port,
write_src_port = nil,
interface_address = nil,
Method initialize
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(write_port_name,
read_port_name,
baud_rate,
parity,
stop_bits,
Method initialize
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
remote_log_directory,
label,
logging_enabled = true,
cycle_time = nil,
cycle_size = 1_000_000_000,
Function defaultSourceLookup
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defaultSourceLookup(filePath) {
try {
filePath = filePath.split(path.sep).join(path.posix.sep)
// Remove any Windows drive letters
filePath = filePath.replace('C:', '')
Function diff_linesToCharsMunge_
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function diff_linesToCharsMunge_(text) {
var chars = ''
// Walk the text, pulling out a substring for each line.
// text.split('\n') would would temporarily double our memory footprint.
// Modifying text would create many large strings to garbage collect.
Function addConnector
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addConnector(
acediff,
leftStartLine,
leftEndLine,
rightStartLine,