SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Avoid deeply nested control flow statements.
Open

              if (angle(λ, λ1) > angle(λ0, λ1)) λ0 = λ;

Avoid deeply nested control flow statements.
Open

            if (subnode = subnodes[k]) d3_transitionNode(subnode, k, id, transition);

Avoid deeply nested control flow statements.
Open

                if (discriminant.valueOf() === 0) {
                    return [b.multiply(-1).divide(a.multiply(2)).reduce()];

                    // If the discriminant is greater than 0, there are two real roots:
                    // (-b - √discriminant) / 2a

Avoid deeply nested control flow statements.
Open

            for (j = i + 1; j < n; ++j) q[j].i--;

Avoid deeply nested control flow statements.
Open

              if (angle(λ0, λ) > angle(λ0, λ1)) λ1 = λ;

Avoid deeply nested control flow statements.
Open

                        switch (col) {
                            case 0: calender += " ui-datepicker-group-first";
                                cornerClass = " ui-corner-" + (isRTL ? "right" : "left"); break;
                            case numMonths[1]-1: calender += " ui-datepicker-group-last";
                                cornerClass = " ui-corner-" + (isRTL ? "left" : "right"); break;

Avoid deeply nested control flow statements.
Open

                            if (lookAhead("'")) {
                                output += "'";
                            } else {
                                literal = true;
                            }

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

function cursorCoords(cm, pos, context, lineObj, preparedMeasure, varHeight) {
Severity: Minor
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

            if (pos < j$2) { order.splice(at, 0, new BidiSpan(1, pos, j$2)) }
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          { if (oldCur[k].marker == span.marker) { continue spans } }
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if (stream.peek() === ' ') { // Surrounded by spaces, ignore
            return getType(state);
          } else { // Not surrounded by spaces, back up pointer
            stream.backUp(2);
          }
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/markdown.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if (sp.to != null && sp.to != pos && nextChange > sp.to) {
            nextChange = sp.to
            spanEndStyle = ""
          }
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

        if (m.explicitlyCleared) {
          if (!line.markedSpans) { break }
          else {--i; continue}
        }
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

    } else if (
      // if setext set, indicates line after ---/===
      state.setext || (
        // line before ---/===
        (!allowsInlineContinuation || !prevLineIsList) && !state.quote && state.list === false &&
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/markdown.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

      if (newGroup) { for (var prop in change) { if (m = prop.match(/^spans_(\d+)$/)) {
        if (indexOf(newGroup, Number(m[1])) > -1) {
          lst(newChanges)[prop] = change[prop]
          delete change[prop]
        }
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if (modeCfg.highlightFormatting) state.formatting = "strikethrough";
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/markdown.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if (m.className) { spanStyle += " " + m.className }
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

        { if (endStyles[j$1 + 1] == nextChange) { spanEndStyle += " " + endStyles[j$1] } } }
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if (m.css) { css = (css ? css + ";" : "") + m.css }
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 45 mins to fix

Avoid deeply nested control flow statements.
Open

          if (m.endStyle && sp.to == nextChange) { (endStyles || (endStyles = [])).push(m.endStyle, sp.to) }
Severity: Major
Found in de.bund.bfr.knime.fsklab.deprecatednodes/js-lib/codemirror/codemirror.js - About 45 mins to fix
Severity
Category
Status
Source
Language