tomchentw/react-prism

View on GitHub

Showing 259 of 373 total issues

Function leftButtonStartDrag has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                          ? (function leftButtonStartDrag(e, t, r, n) {
                              var o = e.display,
                                i = !1,
                                c = operation(e, function(t) {
                                  l && (o.scroller.draggable = !1),
Severity: Minor
Found in docs/build/0.355cdadd.js - About 1 hr to fix

    Function fromTextArea has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            (CodeMirror$1.fromTextArea = function fromTextArea(e, t) {
              if (
                (((t = t ? copyObj(t) : {}).value = e.value),
                !t.tabindex && e.tabIndex && (t.tabindex = e.tabIndex),
                !t.placeholder && e.placeholder && (t.placeholder = e.placeholder),
    Severity: Minor
    Found in docs/build/0.355cdadd.js - About 1 hr to fix

      Function bidiSimplify has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                                          ;(S[a] = (function bidiSimplify(e, t) {
                                            var r = t.anchor,
                                              n = t.head,
                                              o = getLine(e.doc, r.line)
                                            if (
      Severity: Minor
      Found in docs/build/0.355cdadd.js - About 1 hr to fix

        Function regChange has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              function regChange(e, t, r, n) {
                null == t && (t = e.doc.first),
                  null == r && (r = e.doc.first + e.doc.size),
                  n || (n = 0)
                var o = e.display
        Severity: Minor
        Found in docs/build/0.355cdadd.js - About 1 hr to fix

          Function addChangeToHistory has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                function addChangeToHistory(e, t, r, n) {
                  var o = e.history
                  o.undone.length = 0
                  var i,
                    s,
          Severity: Minor
          Found in docs/build/0.355cdadd.js - About 1 hr to fix

            Function locateNodeInLineView has 46 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  function locateNodeInLineView(e, t, r) {
                    var n = e.text.firstChild,
                      o = !1
                    if (!t || !contains(n, t)) return badPos(Pos(lineNo(e.line), 0), !0)
                    if (t == n && ((o = !0), (t = n.childNodes[r]), (r = 0), !t)) {
            Severity: Minor
            Found in docs/build/0.355cdadd.js - About 1 hr to fix

              Function indentLine has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    function indentLine(e, t, r, n) {
                      var o,
                        i = e.doc
                      null == r && (r = "add"),
                        "smart" == r &&
              Severity: Minor
              Found in docs/build/0.355cdadd.js - About 1 hr to fix

                Function domTextBetween has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                (function domTextBetween(e, t, r, n, o) {
                                  var i = "",
                                    s = !1,
                                    a = e.doc.lineSeparator()
                                  function close() {
                Severity: Minor
                Found in docs/build/0.355cdadd.js - About 1 hr to fix

                  Function scrollPosIntoView has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                              (function scrollPosIntoView(e, t, r, n) {
                                null == n && (n = 0)
                                var o
                                e.options.lineWrapping ||
                                  t != r ||
                  Severity: Minor
                  Found in docs/build/0.355cdadd.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                              if (o && !r && !d && null != ge)
                                return (
                                  i && u && updateScrollTop(e, Math.max(0, a.scrollTop + i * ge)),
                                  setScrollLeft(e, Math.max(0, a.scrollLeft + o * ge)),
                                  (!i || (i && u)) && e_preventDefault(t),
                    Severity: Critical
                    Found in docs/build/0.355cdadd.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if (
                                    ((t.contextMenuPending = !1),
                                    (t.wrapper.style.cssText = p),
                                    (o.style.cssText = u),
                                    s &&
                      Severity: Critical
                      Found in docs/build/0.355cdadd.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if (
                                      !s ||
                                      s.bad ||
                                      !a ||
                                      a.bad ||
                        Severity: Critical
                        Found in docs/build/0.355cdadd.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                    if (
                                      ((e.trailingSpace = 32 == u.charCodeAt(t.length - 1)),
                                      r || n || o || p || l)
                                    ) {
                                      var C = r || ""
                          Severity: Critical
                          Found in docs/build/0.355cdadd.js - About 1 hr to fix

                            Function getContextBefore has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                  function getContextBefore(e, t, r) {
                                    var n = e.doc,
                                      o = e.display
                                    if (!n.mode.startState) return new ee(n, !0, t)
                                    var i = (function findStartLine(e, t, r) {
                            Severity: Minor
                            Found in docs/build/0.355cdadd.js - About 1 hr to fix

                              Function clear has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                    ;(Ce.prototype.clear = function() {
                                      if (!this.explicitlyCleared) {
                                        var e = this.doc.cm,
                                          t = e && !e.curOp
                                        if ((t && startOperation(e), hasHandler(this, "clear"))) {
                              Severity: Minor
                              Found in docs/build/0.355cdadd.js - About 1 hr to fix

                                Function addWidget has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                            addWidget: function(e, t, r, n, o) {
                                              var i = this.display,
                                                s = (e = cursorCoords(this, clipPos(this.doc, e))).bottom,
                                                a = e.left
                                              if (
                                Severity: Minor
                                Found in docs/build/0.355cdadd.js - About 1 hr to fix

                                  Function addLegacyProps has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          (function addLegacyProps(e) {
                                            ;(e.off = off),
                                              (e.on = j),
                                              (e.wheelEventPixels = wheelEventPixels),
                                              (e.Doc = Se),
                                  Severity: Minor
                                  Found in docs/build/0.355cdadd.js - About 1 hr to fix

                                    Function postUpdateDisplay has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                          function postUpdateDisplay(e, t) {
                                            for (
                                              var r = t.viewport, n = !0;
                                              ((n &&
                                                e.options.lineWrapping &&
                                    Severity: Minor
                                    Found in docs/build/0.355cdadd.js - About 1 hr to fix

                                      Function skipAtomicInner has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                            function skipAtomicInner(e, t, r, n, o) {
                                              var i = getLine(e, t.line)
                                              if (i.markedSpans)
                                                for (var s = 0; s < i.markedSpans.length; ++s) {
                                                  var a = i.markedSpans[s],
                                      Severity: Minor
                                      Found in docs/build/0.355cdadd.js - About 1 hr to fix

                                        Function endOperation has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                              function endOperation(e) {
                                                !(function finishOperation(e, t) {
                                                  var r = e.ownsGroup
                                                  if (r)
                                                    try {
                                        Severity: Minor
                                        Found in docs/build/0.355cdadd.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language