openc3-cosmos-cmd-tlm-api/app/models/messages_thread.rb
Method setup_thread_body
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setup_thread_body
# The goal of this mode is to determine if we are starting with files or from
# realtime
if @start_time
# start_time can be at most 1 minute in the future to prevent
Method handle_log_entry
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def handle_log_entry(log_entry)
log_entry_time = log_entry["time"].to_i
# Filter based on start_time
return nil if @start_time and log_entry_time < @start_time
Avoid too many return
statements within this method. Open
Open
return nil if @level != "DEBUG"
Avoid too many return
statements within this method. Open
Open
return nil if @level == "FATAL"
Avoid too many return
statements within this method. Open
Open
return nil if @level == "ERROR" or @level == "FATAL"
Avoid too many return
statements within this method. Open
Open
return nil if @level == "WARN" or @level == "ERROR" or @level == "FATAL"
Avoid too many return
statements within this method. Open
Open
return log_entry
Avoid too many return
statements within this method. Open
Open
return log_entry