silverbucket/jaribu

View on GitHub

Showing 36 of 66 total issues

Avoid deeply nested control flow statements.
Open

                for (key in cmd.confirmProps) {
                  self.test.assertAnd(cmd.confirmProps[key], msg[key], 'checking for property: '+key);
                }
Severity: Major
Found in lib/tools/WebSocketClient.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                if (!msg) {
                  msg = p + ": "+ a[p] + " not in second object";
                }
    Severity: Major
    Found in lib/tools/assert.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                    } else if ((cmd.expected !== undefined) && ((cmd.receivedConfirm) || (typeof cmd.confirmProps === 'undefined'))) {
                      // either confirmation received already, or not expected, continue with
                      // check
      
                      //console.log('actual response: ', message.utf8Data);
      Severity: Major
      Found in lib/tools/WebSocketClient.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                        if (self.test.result() !== false) {
                          console.log('RECEIVED CONFIRM');
                          cmd.receivedConfirm = true;
                        }
        Severity: Major
        Found in lib/tools/WebSocketClient.js - About 45 mins to fix

          Avoid too many return statements within this function.
          Open

              return false;
          Severity: Major
          Found in lib/tools/assert.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                      return false;
            Severity: Major
            Found in lib/tools/assert.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return false;
              Severity: Major
              Found in lib/tools/assert.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return true;
                Severity: Major
                Found in lib/tools/assert.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return true;
                  Severity: Major
                  Found in lib/fakes/remoteStorageMock.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return true;
                    Severity: Major
                    Found in lib/jaribu.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                return false;
                      Severity: Major
                      Found in lib/tools/assert.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return false;
                        Severity: Major
                        Found in lib/tools/assert.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return false;
                          Severity: Major
                          Found in lib/tools/assert.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return true;
                            Severity: Major
                            Found in lib/tools/assert.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                        return false;
                              Severity: Major
                              Found in lib/tools/assert.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return true;
                                Severity: Major
                                Found in lib/tools/assert.js - About 30 mins to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language