Showing 842 of 1,379 total issues
Method get_metrics
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def get_metrics(manual: false, scope: $openc3_scope, token: $openc3_token)
authorize(permission: 'system', manual: manual, scope: scope, token: token)
sum_metrics = SUM_METRICS.dup
duration_metrics = DURATION_METRICS.dup
Method create
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def create(update = false)
return unless authorization('admin')
file = params[:plugin]
if file
scope = sanitize_params([:scope])
Method debug
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def debug(debug_text)
handle_output_io()
if not running?
# Capture STDOUT and STDERR
$stdout.add_stream(@output_io)
Method remote_target_files
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.remote_target_files(bucket_client:, prefix:, include_temp: false, path_matchers: nil)
result = Set.new
temp = Set.new
resp = bucket_client.list_objects(
bucket: ENV['OPENC3_CONFIG_BUCKET'],
Method generate_microservice
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.generate_microservice(args)
if args.length < 2 or args.length > 3
abort("Usage: cli generate #{args[0]} <NAME> (--ruby or --python)")
end
Function _wait_packet
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _wait_packet(
Function _openc3_script_wait
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _openc3_script_wait(
Consider simplifying this complex logical expression. Open
Open
if (
lastEquality &&
((pre_ins && pre_del && post_ins && post_del) ||
(lastEquality.length < this.Diff_EditCost / 2 &&
pre_ins + pre_del + post_ins + post_del == 3))
Function _openc3_script_wait_value
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _openc3_script_wait_value(
Function _get_overrides
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_overrides(cls, now, tgt_pkt_key, overrides, target_name, packet_name, cache_timeout, scope):
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function check_overflow
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def check_overflow(cls, value, min_value, max_value, hex_max_value, bit_size, data_type, overflow):
Function _openc3_script_wait
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _openc3_script_wait(
Function _wait_packet
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _wait_packet(
Function _openc3_script_wait_value
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _openc3_script_wait_value(
Function check_overflow_array
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def check_overflow_array(cls, values, min_value, max_value, hex_max_value, bit_size, data_type, overflow):
Function write
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def write(cls, value, bit_offset, bit_size, data_type, buffer, endianness, overflow):
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function __init__
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Method reduce_running
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def reduce_running(key, reduced, samples, samples_sum, avg_key, stddev_key, avgvals_key, stddevvals_key)