tomchentw/react-toastr

View on GitHub

Showing 218 of 289 total issues

Function coordsCharInner has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function coordsCharInner(e, t, n, r, o) {
        o -= heightAtLine(t)
        var i = prepareMeasureForLine(e, t),
          a = widgetTopHeight(t),
          s = 0,
Severity: Major
Found in docs/build/0.320b8cca.js - About 2 hrs to fix

    Function updateDisplayIfNeeded has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          function updateDisplayIfNeeded(e, t) {
            var n = e.display,
              r = e.doc
            if (t.editorIsHidden) return resetView(e), !1
            if (
    Severity: Major
    Found in docs/build/0.320b8cca.js - About 2 hrs to fix

      Function makeChangeFromHistory has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            function makeChangeFromHistory(e, t, n) {
              if (!e.cm || !e.cm.state.suppressEdits || n) {
                for (
                  var r,
                    o = e.history,
      Severity: Major
      Found in docs/build/0.320b8cca.js - About 2 hrs to fix

        Function CodeMirror$1 has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              function CodeMirror$1(e, t) {
                var n = this
                if (!(this instanceof CodeMirror$1)) return new CodeMirror$1(e, t)
                ;(this.options = t = t ? copyObj(t) : {}),
                  copyObj(Be, t, !1),
        Severity: Major
        Found in docs/build/0.320b8cca.js - About 2 hrs to fix

          Function showPrimarySelection has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  (_e.prototype.showPrimarySelection = function() {
                    var e = window.getSelection(),
                      t = this.cm,
                      r = t.doc.sel.primary(),
                      o = r.from(),
          Severity: Major
          Found in docs/build/0.320b8cca.js - About 2 hrs to fix

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

                  ;(Ve.prototype.init = function(e) {
                    function prepareCopyCut(e) {
                      if (!signalDOMEvent(r, e)) {
                        if (r.somethingSelected())
                          setLastCopied({ lineWise: !1, text: r.getSelections() })
            Severity: Major
            Found in docs/build/0.320b8cca.js - About 2 hrs to fix

              Function highlightWorker has 52 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    function highlightWorker(e) {
                      var t = e.doc
                      if (!(t.highlightFrontier >= e.display.viewTo)) {
                        var n = +new Date() + e.options.workTime,
                          r = getContextBefore(e, t.highlightFrontier),
              Severity: Major
              Found in docs/build/0.320b8cca.js - About 2 hrs to fix

                Function poll has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        (Ve.prototype.poll = function() {
                          var e = this,
                            t = this.cm,
                            n = this.textarea,
                            r = this.prevInput
                Severity: Major
                Found in docs/build/0.320b8cca.js - About 2 hrs to fix

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

                          function tokenBase(e, t) {
                            var n = e.next()
                            if ('"' == n || "'" == n)
                              return (t.tokenize = tokenString(n)), t.tokenize(e, t)
                            if ("." == n && e.match(/^\d+(?:[eE][+\-]?\d+)?/))
                  Severity: Major
                  Found in docs/build/0.320b8cca.js - About 2 hrs to fix

                    Function applyTextInput has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          function applyTextInput(e, t, n, r, o) {
                            var i = e.doc
                            ;(e.display.shift = !1), r || (r = i.sel)
                            var a = e.state.pasteIncoming || "paste" == o,
                              s = U(t),
                    Severity: Major
                    Found in docs/build/0.320b8cca.js - About 2 hrs to fix

                      Function updateDoc has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            function updateDoc(e, t, n, r) {
                              function spansFor(e) {
                                return n ? n[e] : null
                              }
                              function update(e, n, o) {
                      Severity: Minor
                      Found in docs/build/0.320b8cca.js - About 2 hrs to fix

                        Consider simplifying this complex logical expression.
                        Open

                                      if (
                                        !((u >= 0 && d <= 0) || (u <= 0 && d >= 0)) &&
                                        ((u <= 0 &&
                                          (l.marker.inclusiveRight && o.inclusiveLeft
                                            ? cmp(c.to, n) >= 0
                        Severity: Critical
                        Found in docs/build/0.320b8cca.js - About 2 hrs to fix

                          Function onScrollWheel has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                function onScrollWheel(e, t) {
                                  var r = wheelEventDelta(t),
                                    o = r.x,
                                    i = r.y,
                                    a = e.display,
                          Severity: Minor
                          Found in docs/build/0.320b8cca.js - About 2 hrs to fix

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

                                  function highlightLine(e, t, n, r) {
                                    var o = [e.state.modeGen],
                                      i = {}
                                    runMode(
                                      e,
                            Severity: Minor
                            Found in docs/build/0.320b8cca.js - About 1 hr to fix

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

                                      (CodeMirror$1.fromTextArea = function fromTextArea(e, t) {
                                        function save() {
                                          e.value = a.getValue()
                                        }
                                        if (
                              Severity: Minor
                              Found in docs/build/0.320b8cca.js - About 1 hr to fix

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

                                      function makeChangeSingleDocInEditor(e, t, n) {
                                        var r = e.doc,
                                          o = e.display,
                                          i = t.from,
                                          a = t.to,
                                Severity: Minor
                                Found in docs/build/0.320b8cca.js - About 1 hr to fix

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

                                            function xmlToken(n, i, a) {
                                              if (2 == a.depth)
                                                return (
                                                  n.match(/^.*?\*\//) ? (a.depth = 1) : n.skipToEnd(), "comment"
                                                )
                                  Severity: Minor
                                  Found in docs/build/0.320b8cca.js - About 1 hr to fix

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

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

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

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

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

                                              function locateNodeInLineView(e, t, n) {
                                                function find(t, n, r) {
                                                  for (var o = -1; o < (c ? c.length : 0); o++)
                                                    for (var i = o < 0 ? l.map : c[o], a = 0; a < i.length; a += 3) {
                                                      var s = i[a + 2]
                                        Severity: Minor
                                        Found in docs/build/0.320b8cca.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language