OpenC3/cosmos

View on GitHub

Showing 1,379 of 1,379 total issues

Avoid deeply nested control flow statements.
Open

            if (!items.some((item) => item === lineObj.mnemonic.item)) {
              problemLines.push({
                ...lineObj,
                error: `Item "${target} ${packet} ${lineObj.mnemonic.item}" does not exist.`,
              })

    Avoid deeply nested control flow statements.
    Open

              if (x1 >= x2) {
                // Overlap detected.
                return this.diff_bisectSplit_(text1, text2, x1, y1, deadline)
              }

      Avoid deeply nested control flow statements.
      Open

                  if (commonlength !== 0) {
                    diffs[pointer][1] =
                      text_insert.substring(text_insert.length - commonlength) +
                      diffs[pointer][1]
                    text_insert = text_insert.substring(

        Function protocol_cmd has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def protocol_cmd(
        Severity: Minor
        Found in openc3/python/openc3/topics/interface_topic.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                      if (nibble.length < 2) {
                        nibble = '0' + nibble
                      }

            Avoid deeply nested control flow statements.
            Open

                      if (best_loc > loc) {
                        // When passing loc, don't exceed our current distance from loc.
                        start = Math.max(1, 2 * loc - best_loc)
                      } else {
                        // Already passed loc, downhill from here on in.

              Avoid deeply nested control flow statements.
              Open

                        if (diff_text == bigpatch.diffs[0][1]) {
                          bigpatch.diffs.shift()
                        } else {
                          bigpatch.diffs[0][1] = bigpatch.diffs[0][1].substring(
                            diff_text.length,

                Function __init__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def __init__(
                Severity: Minor
                Found in openc3/python/openc3/script/web_socket_api.py - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                            if (x1 >= x2) {
                              // Overlap detected.
                              return this.diff_bisectSplit_(text1, text2, x1, y1, deadline)
                            }

                    Function __init__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def __init__(
                    Severity: Minor
                    Found in openc3/python/openc3/script/web_socket_api.py - About 45 mins to fix

                      Function _cmd_disconnect has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def _cmd_disconnect(cmd, raw, no_range, no_hazardous, *args, scope):
                      Severity: Minor
                      Found in openc3/python/openc3/script/commands.py - About 45 mins to fix

                        Function prompt_for_critical_cmd has 6 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def prompt_for_critical_cmd(uuid, _username, _target_name, _cmd_name, _cmd_params, cmd_string):
                        Severity: Minor
                        Found in openc3/python/openc3/script/__init__.py - About 45 mins to fix

                          Function inject_tlm has 6 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def inject_tlm(
                          Severity: Minor
                          Found in openc3/python/openc3/topics/interface_topic.py - About 45 mins to fix

                            Function __init__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def __init__(
                            Severity: Minor
                            Found in openc3/python/openc3/script/web_socket_api.py - About 45 mins to fix

                              Function raise_critical_cmd_error has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def raise_critical_cmd_error(cls, msg_hash, username, target_name, cmd_name, cmd_params, cmd_string):
                              Severity: Minor
                              Found in openc3/python/openc3/topics/command_topic.py - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                          if (diff_type === DIFF_EQUAL) {
                                            patch.length2 += diff_text.length
                                            start2 += diff_text.length
                                          } else {
                                            empty = false

                                  Function running_script_prompt has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def running_script_prompt(
                                  Severity: Minor
                                  Found in openc3/python/openc3/script/script_runner.py - About 45 mins to fix

                                    Function read_all has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def read_all(
                                    Severity: Minor
                                    Found in openc3/python/openc3/script/web_socket_api.py - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if msg_type == "reject_subscription":
                                                                  raise RuntimeError("Subscription Rejected")
                                                              if timeout:
                                      Severity: Major
                                      Found in openc3/python/openc3/script/web_socket_api.py - About 45 mins to fix

                                        Function create_timeline_activity has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        def create_timeline_activity(name, kind, start, stop, data={}, scope=OPENC3_SCOPE):
                                        Severity: Minor
                                        Found in openc3/python/openc3/script/cosmos_calendar.py - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language