beevelop/corci-monitor

View on GitHub

Showing 256 of 374 total issues

Avoid deeply nested control flow statements.
Open

                    if (copyIsArray) {
                        copyIsArray = false;
                        clone = src && Array.isArray(src) ? src : [];
                    } else {
                        clone = src && isPlainObject(src) ? src : {};
Severity: Major
Found in www/js/bundle.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                    if (ko.utils.arrayIndexOf(cyclicDependencyStack, bindingDependencyKey) !== -1) {
                                        throw Error("Cannot combine the following bindings, because they have a cyclic dependency: " + cyclicDependencyStack.join(", "));
                                    } else {
                                        pushBinding(bindingDependencyKey);
                                    }
    Severity: Major
    Found in www/js/bundle.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                      } else if (copy !== undefined) {
                          target[name] = copy;
                      }
      Severity: Major
      Found in www/js/bundle.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (!(mixin in calledMixins)) {
                                    calledMixins[mixin] = 1;
                                    mixin.call(objectInstance, p, p.constructor);
                                }
        Severity: Major
        Found in www/js/bundle.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                        if (parseSupported) {
                          try {
                            // Safari <= 5.1.2 and FF 3.1b1 allow unescaped tabs in strings.
                            parseSupported = !parse('"\t"');
                          } catch (exception) {}
          Severity: Major
          Found in www/js/bundle.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                            } else if (c === 47 && i && tok.length > 1) {  // "/"
                                // Look at the end of the previous token to determine if the slash is actually division
                                var match = toks[i-1].match(divisionLookBehind);
                                if (match && !keywordRegexLookBehind[match[0]]) {
                                    // The slash is actually a division punctuator; re-parse the remainder of the string (not including the slash)
            Severity: Major
            Found in www/js/bundle.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                            if (charCode < 32) {
                              result += unicodePrefix + toPaddedString(2, charCode.toString(16));
                              break;
                            }
              Severity: Major
              Found in www/js/bundle.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                              if (element !== undef) {
                                // According to ES 5.1 section 15.12.3: "If `gap` {whitespace}
                                // is not the empty string, let `member` {quote(property) + ":"}
                                // be the concatenation of `member` and the `space` character."
                                // The "`space` character" refers to the literal space
                Severity: Major
                Found in www/js/bundle.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                              for (length = value.length; length--;) {
                                update(value, length, callback);
                              }
                  Severity: Major
                  Found in www/js/bundle.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                if (value > -1 / 0 && value < 1 / 0) {
                                  // Dates are serialized according to the `Date#toJSON` method
                                  // specified in ES 5.1 section 15.9.5.44. See section 15.9.1.15
                                  // for the ISO 8601 date time string format.
                                  if (getDay) {
                    Severity: Major
                    Found in www/js/bundle.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                    if (isSigned) {
                                      abort();
                                    }
                      Severity: Major
                      Found in www/js/bundle.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                  } else if (className == stringClass) {
                                    whitespace = width.length <= 10 ? width : width.slice(0, 10);
                                  }
                        Severity: Major
                        Found in www/js/bundle.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                        for (value = "@", Index++; Index < length;) {
                                          charCode = source.charCodeAt(Index);
                                          if (charCode < 32) {
                                            // Unescaped ASCII control characters (those with a code unit
                                            // less than the space character) are not permitted.
                          Severity: Major
                          Found in www/js/bundle.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                        for (;; hasMembers || (hasMembers = true)) {
                                          value = lex();
                                          // A closing square bracket marks the end of the array literal.
                                          if (value == "]") {
                                            break;
                            Severity: Major
                            Found in www/js/bundle.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                          if (stack[length] === value) {
                                            // Cyclic structures cannot be serialized by `JSON.stringify`.
                                            throw TypeError();
                                          }
                              Severity: Major
                              Found in www/js/bundle.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                            if ((width -= width % 1) > 0) {
                                              for (whitespace = "", width > 10 && (width = 10); whitespace.length < width; whitespace += " ");
                                            }
                                Severity: Major
                                Found in www/js/bundle.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                if (charCode == 45) {
                                                  isSigned = true;
                                                  charCode = source.charCodeAt(++Index);
                                                }
                                  Severity: Major
                                  Found in www/js/bundle.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                for (index = 0, length = value.length; index < length; index++) {
                                                  element = serialize(index, value, callback, properties, whitespace, indentation, stack);
                                                  results.push(element === undef ? "null" : element);
                                                }
                                    Severity: Major
                                    Found in www/js/bundle.js - About 45 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                              if (typeof trueishCondition === "function" ? !trueishCondition.apply(this, arguments) : !trueishCondition) {
                                                  var parameters = Array.prototype.slice.call(arguments, 1);
                                                  var msg = typeof message == "string" ? String.format.apply(message, parameters) : message;
                                                  return typeof console != "undefined" && !console.__throwErrorOnAssert && console.assert && console.assert.bind && console.assert.bind(console, trueishCondition, msg) || function consoleAssertThrow() { throw msg; };
                                              }
                                      Severity: Major
                                      Found in www/js/bundle.js - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                                if (!(charCode >= 48 && charCode <= 57 || charCode >= 97 && charCode <= 102 || charCode >= 65 && charCode <= 70)) {
                                                                  // Invalid Unicode escape sequence.
                                                                  abort();
                                                                }
                                        Severity: Major
                                        Found in www/js/bundle.js - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language