tomchentw/react-toastr

View on GitHub

Showing 218 of 289 total issues

Avoid deeply nested control flow statements.
Open

                if (!p) {
                  var T = M > L ? m.slice(0, L - f) : m
                  t.addToken(
                    t,
                    T,
Severity: Major
Found in docs/build/0.320b8cca.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                    if (h[f].node == p) {
                      e.display.currentWheelTarget = p
                      break e
                    }
    Severity: Major
    Found in docs/build/0.320b8cca.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                      for (var s = 0; s < i.electricChars.length; s++)
                        if (t.indexOf(i.electricChars.charAt(s)) > -1) {
                          a = indentLine(e, o.head.line, "smart")
                          break
                        }
      Severity: Major
      Found in docs/build/0.320b8cca.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                        for (var S = 0; S < b.length; S += 2)
                          b[S + 1] == v && (c += " " + b[S])
        Severity: Major
        Found in docs/build/0.320b8cca.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                          for (var k = 0; k < y.length; ++k)
                            buildCollapsedSpan(t, 0, y[k])
          Severity: Major
          Found in docs/build/0.320b8cca.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                            if (
                              ((r < 0 ? l.inclusiveRight : l.inclusiveLeft) &&
                                (c = movePos(e, c, -r, c && c.line == t.line ? i : null)),
                              c &&
                                c.line == t.line &&
            Severity: Major
            Found in docs/build/0.320b8cca.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  for (++z; z < E && a.test(c[z]); ++z);
              Severity: Major
              Found in docs/build/0.320b8cca.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                if (i[c].marker == l.marker) continue e
                Severity: Major
                Found in docs/build/0.320b8cca.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      if (
                                        !t.options.allowDropFileTypes ||
                                        -1 != indexOf(t.options.allowDropFileTypes, e.type)
                                      ) {
                                        var a = new FileReader()
                  Severity: Major
                  Found in docs/build/0.320b8cca.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                    if (i.markedSpans) {
                                      --a
                                      continue
                                    }
                    Severity: Major
                    Found in docs/build/0.320b8cca.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                    if (s) for (var l = 0; l < s.length; l++) s[l].style.left = i
                      Severity: Major
                      Found in docs/build/0.320b8cca.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                        for (var d in c)
                                          (u = d.match(/^spans_(\d+)$/)) &&
                                            indexOf(t, Number(u[1])) > -1 &&
                                            ((lst(s)[d] = c[d]), delete c[d])
                        Severity: Major
                        Found in docs/build/0.320b8cca.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                          if (i && !o) {
                                            ++a
                                            break
                                          }
                          Severity: Major
                          Found in docs/build/0.320b8cca.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                              if (
                                                (t.state.draggingText &&
                                                  !t.state.draggingText.copy &&
                                                  (d = t.listSelections()),
                                                setSelectionNoUndo(t.doc, simpleSelection(n, n)),
                            Severity: Major
                            Found in docs/build/0.320b8cca.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                              if (M >= L) {
                                                ;(m = m.slice(L - f)), (f = L)
                                                break
                                              }
                              Severity: Major
                              Found in docs/build/0.320b8cca.js - About 45 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                              if (t) {
                                                var o = this.getHelper(e, "wordChars")
                                                ;("before" != e.sticky && r != t.length) || !n ? ++r : --n
                                                for (
                                                  var i = t.charAt(n),
                                Severity: Major
                                Found in docs/build/0.320b8cca.js - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                              if (0 != cmp(a, d)) {
                                                ;(e.curOp.focus = activeElt()), extendTo(a)
                                                var s = visibleLines(o, i)
                                                ;(a.line >= s.to || a.line < s.from) &&
                                                  setTimeout(
                                  Severity: Major
                                  Found in docs/build/0.320b8cca.js - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                              if (
                                                (0 == r.ch &&
                                                  r.line > e.firstLine() &&
                                                  (r = Pos(r.line - 1, getLine(e.doc, r.line - 1).length)),
                                                o.ch == getLine(e.doc, o.line).text.length &&
                                    Severity: Major
                                    Found in docs/build/0.320b8cca.js - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                  if (
                                                    ((r = e[c + 2]),
                                                    s == l && n == (r.insertLeft ? "left" : "right") && (a = n),
                                                    "left" == n && 0 == o)
                                                  )
                                      Severity: Major
                                      Found in docs/build/0.320b8cca.js - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                        if (i.empty())
                                                          i.head.line > r &&
                                                            (indentLine(t, i.head.line, e, !0),
                                                            (r = i.head.line),
                                                            o == t.doc.sel.primIndex && ensureCursorVisible(t))
                                        Severity: Major
                                        Found in docs/build/0.320b8cca.js - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language