tomchentw/react-toastr

View on GitHub

Showing 218 of 289 total issues

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

        function objprop(e, t) {
          if ("async" == e) return (m.marked = "property"), cont(objprop)
          if ("variable" == e || "keyword" == m.style) {
            if (((m.marked = "property"), "get" == t || "set" == t))
              return cont(getterSetter)
Severity: Minor
Found in docs/build/0.320b8cca.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

            if (
              !t.force &&
              t.visible.from >= n.viewFrom &&
              t.visible.to <= n.viewTo &&
              (null == n.updateLineNumbers || n.updateLineNumbers >= n.viewTo) &&
    Severity: Major
    Found in docs/build/0.320b8cca.js - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

              else if ("word" == r || "group" == r)
                for (
                  var l = null,
                    c = "group" == r,
                    u = e.cm && e.cm.getHelper(t, "wordChars"),
      Severity: Major
      Found in docs/build/0.320b8cca.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                if (l)
                  for (var f = 0; f < l.length; ++f) {
                    var g = l[f]
                    null != g.to && (g.to += u),
                      null == g.from
        Severity: Major
        Found in docs/build/0.320b8cca.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

                  if (
                    (r &&
                      n < o.viewTo &&
                      (null == o.updateLineNumbers || o.updateLineNumbers > t) &&
                      (o.updateLineNumbers = t),
          Severity: Major
          Found in docs/build/0.320b8cca.js - About 1 hr to fix

            Consider simplifying this complex logical expression.
            Open

                    if (3 == l.nodeType) {
                      for (var p = 0; p < 4; p++) {
                        for (; c && isExtendingChar(t.line.text.charAt(i.coverStart + c)); )
                          --c
                        for (
            Severity: Major
            Found in docs/build/0.320b8cca.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                          if (t.somethingSelected()) {
                            this.prevInput = ""
                            var n = t.getSelection()
                            ;(this.textarea.value = n),
                              t.state.focused && M(this.textarea),
              Severity: Major
              Found in docs/build/0.320b8cca.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                            if (
                              r &&
                              !eventInWidget(t, n) &&
                              null != r.left &&
                              !r.moved &&
                Severity: Major
                Found in docs/build/0.320b8cca.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                                    if (null != a.wheelStartX) {
                                      var e = s.scrollLeft - a.wheelStartX,
                                        t = s.scrollTop - a.wheelStartY,
                                        n =
                                          (t && a.wheelDY && t / a.wheelDY) ||
                  Severity: Major
                  Found in docs/build/0.320b8cca.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                              if (
                                (e.display.input.setUneditable(s),
                                a.insertBefore(s, t.text),
                                t.line.gutterClass && (s.className += " " + t.line.gutterClass),
                                !e.options.lineNumbers ||
                    Severity: Major
                    Found in docs/build/0.320b8cca.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                                if (
                                  ((t = t ? copyObj(t) : {}),
                                  (t.value = e.value),
                                  !t.tabindex && e.tabIndex && (t.tabindex = e.tabIndex),
                                  !t.placeholder && e.placeholder && (t.placeholder = e.placeholder),
                      Severity: Major
                      Found in docs/build/0.320b8cca.js - About 1 hr to fix

                        Function runMode has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                              function runMode(e, t, n, r, o, i, a) {
                        Severity: Major
                        Found in docs/build/0.320b8cca.js - About 50 mins to fix

                          Function coordsBidiPart has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                function coordsBidiPart(e, t, n, r, o, i, a) {
                          Severity: Major
                          Found in docs/build/0.320b8cca.js - About 50 mins to fix

                            Function coordsBidiPartWrapped has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                  function coordsBidiPartWrapped(e, t, n, r, o, i, a) {
                            Severity: Major
                            Found in docs/build/0.320b8cca.js - About 50 mins to fix

                              Function buildToken has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                    function buildToken(e, t, n, r, o, i, l) {
                              Severity: Major
                              Found in docs/build/0.320b8cca.js - About 50 mins to fix

                                Function cursorCoords has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

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

                                  Function JSLexical has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

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

                                    Avoid deeply nested control flow statements.
                                    Open

                                                    if (
                                                      (buildCollapsedSpan(
                                                        t,
                                                        (null == p.to ? h + 1 : p.to) - f,
                                                        p.marker,
                                    Severity: Major
                                    Found in docs/build/0.320b8cca.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                      if (l != a) throw new Error("Inconsistent bindings for " + s)
                                      Severity: Major
                                      Found in docs/build/0.320b8cca.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                        if (/["'\/]/.test(s)) return
                                        Severity: Major
                                        Found in docs/build/0.320b8cca.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language