tomchentw/react-prism

View on GitHub

Showing 259 of 373 total issues

Consider simplifying this complex logical expression.
Open

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

    Consider simplifying this complex logical expression.
    Open

              if ('"' == r || "'" == r)
                return (
                  (t.tokenize = (function tokenString(e) {
                    return function(t, r) {
                      var n,
    Severity: Major
    Found in docs/build/0.355cdadd.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

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

        Consider simplifying this complex logical expression.
        Open

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

          Consider simplifying this complex logical expression.
          Open

                  if (
                    !(
                      eventInWidget(this.display, e) ||
                      signalDOMEvent(this, e) ||
                      (e.ctrlKey && !e.altKey) ||
          Severity: Major
          Found in docs/build/0.355cdadd.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                        if ((!c || d || h || (h = "s"), l && l != h)) {
                          r < 0 && ((r = 1), moveOnce(), (t.sticky = "after"))
                          break
                        }
            Severity: Major
            Found in docs/build/0.355cdadd.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                              if (o.empty())
                                o.head.line > r &&
                                  (indentLine(this, o.head.line, e, !0),
                                  (r = o.head.line),
                                  n == this.doc.sel.primIndex && ensureCursorVisible(this))
              Severity: Major
              Found in docs/build/0.355cdadd.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                        if (!t.styles || t.styles[0] != e.state.modeGen) {
                          var n = getContextBefore(e, lineNo(t)),
                            o =
                              t.text.length > e.options.maxHighlightLength &&
                              copyState(e.doc.mode, n.state),
                Severity: Major
                Found in docs/build/0.355cdadd.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                            if (!s) {
                              if (
                                (this.props.defineMode &&
                                  this.props.defineMode.name &&
                                  this.props.defineMode.fn &&
                  Severity: Major
                  Found in docs/build/0.355cdadd.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                                if (
                                  e &&
                                  e.activeElt &&
                                  e.activeElt != activeElt() &&
                                  (e.activeElt.focus(),
                    Severity: Major
                    Found in docs/build/0.355cdadd.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                                          else if (
                                            !signalDOMEvent(e, t) &&
                                            !eventInWidget(e.display, t) &&
                                            (t.dataTransfer.setData("Text", e.getSelection()),
                                            (t.dataTransfer.effectAllowed = "copyMove"),
                      Severity: Major
                      Found in docs/build/0.355cdadd.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                  if ("word" == e) {
                                    var n = t.current()
                                    return (
                                      r.context &&
                                        r.context.tagName != n &&
                        Severity: Major
                        Found in docs/build/0.355cdadd.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                  if (
                                    !(
                                      hasHandler(e, "beforeChange") ||
                                      (e.cm && hasHandler(e.cm, "beforeChange"))
                                    ) ||
                          Severity: Major
                          Found in docs/build/0.355cdadd.js - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

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

                              Consider simplifying this complex logical expression.
                              Open

                                          if (!s) {
                                            if (
                                              (this.props.defineMode &&
                                                this.props.defineMode.name &&
                                                this.props.defineMode.fn &&
                              Severity: Major
                              Found in docs/build/0.355cdadd.js - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                          if (r)
                                            for (var n = 0; n < r.length; ++n) {
                                              var o = r[n]
                                              ;(null == o.from || o.from <= e.ch) &&
                                                (null == o.to || o.to >= e.ch) &&
                                Severity: Major
                                Found in docs/build/0.355cdadd.js - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                      if (
                                                        (o =
                                                          s && a < 9 && 0 == c && u == i.coverEnd - i.coverStart
                                                            ? l.parentNode.getBoundingClientRect()
                                                            : getUsefulRect(L(l, c, u).getClientRects(), n))
                                  Severity: Major
                                  Found in docs/build/0.355cdadd.js - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                            if (
                                              !a &&
                                              0 == c &&
                                              !t.force &&
                                              r.renderedView == r.view &&
                                    Severity: Major
                                    Found in docs/build/0.355cdadd.js - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                    else if ("above" == n || "near" == n) {
                                                      var l = Math.max(i.wrapper.clientHeight, this.doc.height),
                                                        c = Math.max(i.sizer.clientWidth, i.lineSpace.clientWidth)
                                                      ;("above" == n || e.bottom + t.offsetHeight > l) &&
                                                      e.top > t.offsetHeight
                                      Severity: Major
                                      Found in docs/build/0.355cdadd.js - About 40 mins to fix

                                        Function skipAtomicInner has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                              function skipAtomicInner(e, t, r, n, o) {
                                        Severity: Minor
                                        Found in docs/build/0.355cdadd.js - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language