openc3-cosmos-script-runner-api/scripts/running_script.py
Function __init__
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self, id, scope, name, disconnect):
RunningScript.instance = self
RunningScript.id = id
self.scope = scope
self.name = name
Function run_thread_body
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def run_thread_body(
Avoid deeply nested control flow statements. Open
Open
if input == "REJECTED":
raise RuntimeError("Critical Cmd Rejected")
return input
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
Avoid deeply nested control flow statements. Open
Open
for theFilename in input:
file = _get_storage_file(
f"tmp/{theFilename}", scope=RunningScript.instance.scope
)
Function run_text
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def run_text(
Function display_screen
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def display_screen(target_name, screen_name, x=None, y=None, scope=OPENC3_SCOPE):