tomchentw/react-toastr

View on GitHub

Showing 218 of 289 total issues

Consider simplifying this complex logical expression.
Open

        if (!t.styles || t.styles[0] != e.state.modeGen) {
          var r = getContextBefore(e, lineNo(t)),
            o =
              t.text.length > e.options.maxHighlightLength &&
              copyState(e.doc.mode, r.state),
Severity: Major
Found in docs/build/0.320b8cca.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.320b8cca.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

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

        Consider simplifying this complex logical expression.
        Open

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

          Consider simplifying this complex logical expression.
          Open

                      if (
                        (o =
                          a && s < 9 && 0 == c && u == i.coverEnd - i.coverStart
                            ? l.parentNode.getBoundingClientRect()
                            : getUsefulRect(w(l, c, u).getClientRects(), r)).left ||
          Severity: Major
          Found in docs/build/0.320b8cca.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                    if (
                      !s &&
                      0 == l &&
                      !t.force &&
                      n.renderedView == n.view &&
            Severity: Major
            Found in docs/build/0.320b8cca.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.320b8cca.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

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

                  Consider simplifying this complex logical expression.
                  Open

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

                    Consider simplifying this complex logical expression.
                    Open

                                if (
                                  (l && (f = window.scrollY),
                                  r.input.focus(),
                                  l && window.scrollTo(null, f),
                                  r.input.reset(),
                    Severity: Major
                    Found in docs/build/0.320b8cca.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.320b8cca.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

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

                          Consider simplifying this complex logical expression.
                          Open

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

                            Consider simplifying this complex logical expression.
                            Open

                                    if (a && s < 9 && !c && (!o || (!o.left && !o.right))) {
                                      var f = l.parentNode.getClientRects()[0]
                                      o = f
                                        ? {
                                            left: f.left,
                            Severity: Major
                            Found in docs/build/0.320b8cca.js - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                        if (!d || (e.which && !(e.which < 10)) || !handleKeyBinding(t, e)) {
                                          var o = String.fromCharCode(null == r ? n : r)
                                          "\b" != o &&
                                            (handleCharBinding(t, e, o) || t.display.input.onKeyPress(e))
                                        }
                              Severity: Major
                              Found in docs/build/0.320b8cca.js - About 40 mins to fix

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

                                      function PosWithInfo(e, t, n, r, o) {
                                Severity: Minor
                                Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                                              addWidget: function(e, t, n, r, o) {
                                  Severity: Minor
                                  Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                                          function measureCharPrepared(e, t, n, r, o) {
                                    Severity: Minor
                                    Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

                                            function extendSelection(e, t, n, r, o) {
                                      Severity: Minor
                                      Found in docs/build/0.320b8cca.js - About 35 mins to fix

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

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