SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Avoid deeply nested control flow statements.
Open

        if (near && near.line == pos.line && (diff = cmp(near, oldPos)) && (dir < 0 ? diff < 0 : diff > 0))
          { return skipAtomicInner(doc, near, pos, dir, mayClear) }
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 (sp.from > pos && nextChange > sp.from) {
          nextChange = sp.from
        }
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 (cutTop && cutBot) {
      display.view = display.view.slice(0, cutTop.index)
        .concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN))
        .concat(display.view.slice(cutBot.index))
      display.viewTo += lendiff
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

            for (++j$2; j$2 < i$7 && countsAsNum.test(types[j$2]); ++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 (pos < j$2) { order.splice(at, 0, new BidiSpan(1, pos, j$2)) }

Avoid deeply nested control flow statements.
Open

          { if (oldCur[k].marker == span.marker) { continue spans } }

Avoid deeply nested control flow statements.
Open

          if (m.collapsed && (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0))
            { collapsed = sp }

Avoid deeply nested control flow statements.
Open

        { if (endStyles[j$1 + 1] == nextChange) { spanEndStyle += " " + endStyles[j$1] } } }

Avoid deeply nested control flow statements.
Open

          if (m.className) { spanStyle += " " + m.className }

Avoid deeply nested control flow statements.
Open

          if (m.title && !title) { title = m.title }

Avoid deeply nested control flow statements.
Open

    if (cutTop && cutBot) {
      display.view = display.view.slice(0, cutTop.index)
        .concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN))
        .concat(display.view.slice(cutBot.index))
      display.viewTo += lendiff

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

      validateConnection: function (cellViewS, magnetS, cellViewT, magnetT, end, linkView) {

Avoid deeply nested control flow statements.
Open

          if (m.css) { css = (css ? css + ";" : "") + m.css }

Avoid deeply nested control flow statements.
Open

        } else if (sp.from > pos && nextChange > sp.from) {
          nextChange = sp.from
        }

Avoid deeply nested control flow statements.
Open

          if (m.endStyle && sp.to == nextChange) { (endStyles || (endStyles = [])).push(m.endStyle, sp.to) }

Avoid deeply nested control flow statements.
Open

            for (++j$2; j$2 < i$7 && countsAsNum.test(types[j$2]); ++j$2) {}

Avoid deeply nested control flow statements.
Open

          if (sp.to != null && sp.to != pos && nextChange > sp.to) {
            nextChange = sp.to
            spanEndStyle = ""
          }

Avoid deeply nested control flow statements.
Open

          if (m.startStyle && sp.from == pos) { spanStartStyle += " " + m.startStyle }

Avoid deeply nested control flow statements.
Open

          if (sameLine) { (first || (first = [])).push(span$1) }

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

function cursorCoords(cm, pos, context, lineObj, preparedMeasure, varHeight) {
Severity
Category
Status
Source
Language