tomchentw/react-prism

View on GitHub

Showing 259 of 373 total issues

Function stretchSpansOverChange has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function stretchSpansOverChange(e, t) {
        if (t.full) return null
        var r = isLine(e, t.from.line) && getLine(e, t.from.line).markedSpans,
          n = isLine(e, t.to.line) && getLine(e, t.to.line).markedSpans
        if (!r && !n) return null
Severity: Major
Found in docs/build/0.355cdadd.js - About 3 hrs to fix

    Function Display has 86 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

              c = (this.display = new function Display(e, t, n) {
                ;(this.input = n),
                  (this.scrollbarFiller = elt(
                    "div",
                    null,
    Severity: Major
    Found in docs/build/0.355cdadd.js - About 3 hrs to fix

      Consider simplifying this complex logical expression.
      Open

              if (((this.curOp.focus = activeElt()), !signalDOMEvent(this, e))) {
                s && a < 11 && 27 == e.keyCode && (e.returnValue = !1)
                var t = e.keyCode
                this.display.shift = 16 == t || e.shiftKey
                var r = handleKeyBinding(this, e)
      Severity: Critical
      Found in docs/build/0.355cdadd.js - About 3 hrs to fix

        Consider simplifying this complex logical expression.
        Open

                if (
                  (o.lastOp == n ||
                    (o.lastOrigin == t.origin &&
                      t.origin &&
                      (("+" == t.origin.charAt(0) &&
        Severity: Critical
        Found in docs/build/0.355cdadd.js - About 3 hrs to fix

          Function onContextMenu has 79 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  (_e.prototype.onContextMenu = function(e) {
                    var t = this,
                      r = t.cm,
                      n = r.display,
                      o = t.textarea,
          Severity: Major
          Found in docs/build/0.355cdadd.js - About 3 hrs to fix

            Function token has 78 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                      function token(r, i) {
                        return i.context.mode == n
                          ? (function xmlToken(r, i, s) {
                              if (2 == s.depth)
                                return (
            Severity: Major
            Found in docs/build/0.355cdadd.js - About 3 hrs to fix

              Function onDrop has 77 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    function onDrop(e) {
                      var t = this
                      if (
                        (clearDragCursor(t),
                        !signalDOMEvent(t, e) && !eventInWidget(t.display, e))
              Severity: Major
              Found in docs/build/0.355cdadd.js - About 3 hrs to fix

                Function wire has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                          (Shared.prototype.wire = function(e) {
                            var t = this
                            switch (e) {
                              case "onBlur":
                                this.editor.on("blur", function(e, r) {
                Severity: Major
                Found in docs/build/0.355cdadd.js - About 3 hrs to fix

                  Function buildToken has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        function buildToken(e, t, r, n, o, i, l) {
                          if (t) {
                            var c,
                              u = e.splitSpaces
                                ? (function splitSpaces(e, t) {
                  Severity: Major
                  Found in docs/build/0.355cdadd.js - About 3 hrs to fix

                    Function tokenBase has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

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

                      Function componentDidMount has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                (Controlled.prototype.componentDidMount = function() {
                                  var e = this
                                  if (!s) {
                                    if (
                                      (this.props.defineMode &&
                      Severity: Major
                      Found in docs/build/0.355cdadd.js - About 2 hrs to fix

                        Function init has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              ;(Ve.prototype.init = function(e) {
                                var t = this,
                                  r = this,
                                  n = r.cm,
                                  o = (r.div = e.lineDiv)
                        Severity: Major
                        Found in docs/build/0.355cdadd.js - About 2 hrs to fix

                          Function updateLineGutter has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                function updateLineGutter(e, t, r, n) {
                                  if (
                                    (t.gutter && (t.node.removeChild(t.gutter), (t.gutter = null)),
                                    t.gutterBackground &&
                                      (t.node.removeChild(t.gutterBackground),
                          Severity: Major
                          Found in docs/build/0.355cdadd.js - About 2 hrs to fix

                            Function moveVisually has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                          ? (function moveVisually(e, t, r, n) {
                                              var o = getOrder(t, e.doc.direction)
                                              if (!o) return moveLogically(t, r, n)
                                              r.ch >= t.text.length
                                                ? ((r.ch = t.text.length), (r.sticky = "before"))
                            Severity: Major
                            Found in docs/build/0.355cdadd.js - About 2 hrs to fix

                              Function drawForLine has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function drawForLine(t, r, n) {
                                        var i,
                                          s,
                                          u = getLine(o, t),
                                          d = u.text.length
                              Severity: Major
                              Found in docs/build/0.355cdadd.js - About 2 hrs to fix

                                Function g has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      g = (function(e) {
                                        !(function _inherits(e, t) {
                                          if ("function" != typeof t && null !== t)
                                            throw new TypeError(
                                              "Super expression must either be null or a function, not " +
                                Severity: Major
                                Found in docs/build/0.355cdadd.js - About 2 hrs to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                if (g.top - f.top <= 3) {
                                                  var C = (c ? v : m) && b,
                                                    x = (c ? m : v) && y ? a : (h ? f : g).left,
                                                    w = C ? l : (h ? g : f).right
                                                  add(x, f.top, w - x, f.bottom)
                                  Severity: Critical
                                  Found in docs/build/0.355cdadd.js - About 2 hrs to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                            if (
                                              (e.updatedDisplay && postUpdateDisplay(t, e.update),
                                              null == r.wheelStartX ||
                                                (null == e.scrollTop && null == e.scrollLeft && !e.scrollToPos) ||
                                                (r.wheelStartX = r.wheelStartY = null),
                                    Severity: Critical
                                    Found in docs/build/0.355cdadd.js - About 2 hrs to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                    if (s)
                                                      for (var a = 0; a < s.length; a++) {
                                                        var l = s[a]
                                                        ;(null != l.to && o == e.line && e.ch >= l.to) ||
                                                          (null == l.from && o != e.line) ||
                                      Severity: Critical
                                      Found in docs/build/0.355cdadd.js - About 2 hrs to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                      if (n.line >= e.display.viewFrom) {
                                                        var s = i.styles,
                                                          a =
                                                            i.text.length > e.options.maxHighlightLength
                                                              ? copyState(t.mode, n.state)
                                        Severity: Critical
                                        Found in docs/build/0.355cdadd.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language