tomchentw/react-toastr

View on GitHub

Showing 218 of 289 total issues

Function findFatArrow has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function findFatArrow(e, t) {
          t.fatArrowAt && (t.fatArrowAt = null)
          var n = e.string.indexOf("=>", e.start)
          if (!(n < 0)) {
            if (c) {
Severity: Minor
Found in docs/build/0.320b8cca.js - About 1 hr to fix

    Function maybeoperatorNoComma has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            function maybeoperatorNoComma(e, t, n) {
              var r = 0 == n ? maybeoperatorComma : maybeoperatorNoComma,
                o = 0 == n ? expression : expressionNoComma
              return "=>" == e
                ? cont(pushcontext, n ? arrowBodyNoComma : arrowBody, popcontext)
    Severity: Minor
    Found in docs/build/0.320b8cca.js - About 1 hr to fix

      Function maybeScrollWindow has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            function maybeScrollWindow(e, t) {
              if (!signalDOMEvent(e, "scrollCursorIntoView")) {
                var n = e.display,
                  r = n.sizer.getBoundingClientRect(),
                  o = null
      Severity: Minor
      Found in docs/build/0.320b8cca.js - About 1 hr to fix

        Function indent has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    indent: function(t, n, r) {
                      var o = t.context
                      if (t.tokenize.isInAttribute)
                        return t.tagStart == t.indented
                          ? t.stringStartCol + 1
        Severity: Minor
        Found in docs/build/0.320b8cca.js - About 1 hr to fix

          Function removeReadOnlyRanges has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                function removeReadOnlyRanges(e, t, n) {
                  var r = null
                  if (
                    (e.iter(t.line, n.line + 1, function(e) {
                      if (e.markedSpans)
          Severity: Minor
          Found in docs/build/0.320b8cca.js - About 1 hr to fix

            Function posFromMouse has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  function posFromMouse(e, t, n, r) {
                    var o = e.display
                    if (!n && "true" == e_target(t).getAttribute("cm-not-content"))
                      return null
                    var i,
            Severity: Minor
            Found in docs/build/0.320b8cca.js - About 1 hr to fix

              Function endOperation_finish has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    function endOperation_finish(e) {
                      var t = e.cm,
                        n = t.display,
                        r = t.doc
                      e.updatedDisplay && postUpdateDisplay(t, e.update),
              Severity: Minor
              Found in docs/build/0.320b8cca.js - About 1 hr to fix

                Function inText has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        function inText(e, t) {
                          function chain(n) {
                            return (t.tokenize = n), n(e, t)
                          }
                          var n = e.next()
                Severity: Minor
                Found in docs/build/0.320b8cca.js - About 1 hr to fix

                  Function l has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                    l = function(e, r) {
                                      if (
                                        !t.options.allowDropFileTypes ||
                                        -1 != indexOf(t.options.allowDropFileTypes, e.type)
                                      ) {
                  Severity: Minor
                  Found in docs/build/0.320b8cca.js - About 1 hr to fix

                    Function handleNotify has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      handleNotify(type, message, title, optionsOverride = {}) {
                        if (
                          this.props.preventDuplicates &&
                          _.includes(this.state.toastList, { message })
                        ) {
                    Severity: Minor
                    Found in src/components/ToastContainer.jsx - About 1 hr to fix

                      Function update has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            ;(ce.prototype.update = function(e) {
                              var t = e.scrollWidth > e.clientWidth + 1,
                                n = e.scrollHeight > e.clientHeight + 1,
                                r = e.nativeBarWidth
                              if (n) {
                      Severity: Minor
                      Found in docs/build/0.320b8cca.js - About 1 hr to fix

                        Function removeInner has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                  removeInner: function removeInner(e, t) {
                                    var n = this
                                    this.size -= t
                                    for (var r = 0; r < this.children.length; ++r) {
                                      var o = n.children[r],
                        Severity: Minor
                        Found in docs/build/0.320b8cca.js - About 1 hr to fix

                          Function makeChangeSingleDoc has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                function makeChangeSingleDoc(e, t, n, r) {
                                  if (e.cm && !e.cm.curOp)
                                    return operation(e.cm, makeChangeSingleDoc)(e, t, n, r)
                                  if (t.to.line < e.first)
                                    shiftDoc(e, t.text.length - 1 - (t.to.line - t.from.line))
                          Severity: Minor
                          Found in docs/build/0.320b8cca.js - About 1 hr to fix

                            Function normalizeKeyMap has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                  function normalizeKeyMap(e) {
                                    var t = {}
                                    for (var n in e)
                                      if (e.hasOwnProperty(n)) {
                                        var r = e[n]
                            Severity: Minor
                            Found in docs/build/0.320b8cca.js - About 1 hr to fix

                              Function cursorCoords has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                    function cursorCoords(e, t, n, r, o, i) {
                                      function get(t, a) {
                                        var s = measureCharPrepared(e, o, t, a ? "right" : "left", i)
                                        return (
                                          a ? (s.left = s.right) : (s.right = s.left),
                              Severity: Minor
                              Found in docs/build/0.320b8cca.js - About 1 hr to fix

                                Function updateHeightsInViewport has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                      function updateHeightsInViewport(e) {
                                        for (
                                          var t = e.display, n = t.lineDiv.offsetTop, r = 0;
                                          r < t.view.length;
                                          r++
                                Severity: Minor
                                Found in docs/build/0.320b8cca.js - About 1 hr to fix

                                  Function maybeUpdateLineNumberWidth has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                        function maybeUpdateLineNumberWidth(e) {
                                          if (!e.options.lineNumbers) return !1
                                          var t = e.doc,
                                            n = lineNumberFor(e.options, t.first + t.size - 1),
                                            r = e.display
                                  Severity: Minor
                                  Found in docs/build/0.320b8cca.js - About 1 hr to fix

                                    Function removeLineClass has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            removeLineClass: docMethodOp(function(e, t, n) {
                                              return changeLine(
                                                this,
                                                e,
                                                "gutter" == t ? "gutter" : "class",
                                    Severity: Minor
                                    Found in docs/build/0.320b8cca.js - About 1 hr to fix

                                      Function triggerElectric has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                            function triggerElectric(e, t) {
                                              if (e.options.electricChars && e.options.smartIndent)
                                                for (var n = e.doc.sel, r = n.ranges.length - 1; r >= 0; r--) {
                                                  var o = n.ranges[r]
                                                  if (
                                      Severity: Minor
                                      Found in docs/build/0.320b8cca.js - About 1 hr to fix

                                        Function hydrate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                      value: function hydrate(e) {
                                                        var t = this
                                                        if (
                                                          (Object.keys(e.options || {}).forEach(function(n) {
                                                            return t.editor.setOption(n, e.options[n])
                                        Severity: Minor
                                        Found in docs/build/0.320b8cca.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language