zammad/zammad

View on GitHub

Showing 2,064 of 4,422 total issues

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

  function JSLexical(indented, column, type, align, prev, info) {
Severity: Minor
Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            for (m = 0; m < ps; ++m)
                                newpoints.push(points[i + m]);
    Severity: Major
    Found in app/assets/javascripts/app/lib/flot/jquery.flot.fillbetween.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if (l != newpoints.length && withbottom)
                              newpoints[l + 2] = bottom;
      Severity: Major
      Found in app/assets/javascripts/app/lib/flot/jquery.flot.fillbetween.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                        for (p in table[state]) if (this.terminals_[p] && p > 2) {
                            expected.push("'"+this.terminals_[p]+"'");
                        }
        Severity: Major
        Found in app/assets/javascripts/app/lib/base/jsonlint.js - About 45 mins to fix

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

                  QrCode.encodeSegments = function (segs, ecl, minVersion, maxVersion, mask, boostEcl) {
          Severity: Minor
          Found in app/assets/javascripts/app/lib/base/qrcodegen.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                for (m = 0; m < ps; ++m)
                                    newpoints.push(null);
            Severity: Major
            Found in app/assets/javascripts/app/lib/flot/jquery.flot.fillbetween.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if (px == qx) {
                                      for (m = 0; m < ps; ++m)
                                          newpoints.push(points[i + m]);
              
                                      //newpoints[l + 1] += qy;
              Severity: Major
              Found in app/assets/javascripts/app/lib/flot/jquery.flot.fillbetween.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                      if (cut$1) {
                        display.view = display.view.slice(0, cut$1.index);
                        display.viewTo = cut$1.lineN;
                      } else {
                        resetView(cm);
                Severity: Major
                Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                            { if (endStyles[j$1 + 1] == nextChange) { spanEndStyle += " " + endStyles[j$1]; } } }
                  Severity: Major
                  Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                            } else if (/[<>*+\-|&?]/.test(ch)) {
                              stream.eat(ch)
                              if (ch == ">") stream.eat(ch)
                            }
                    Severity: Major
                    Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                              if (!CodeMirror.isWordChar(next) && prev != ch && !CodeMirror.isWordChar(prev)) curType = "both";
                              else return CodeMirror.Pass;
                      Severity: Major
                      Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if (this._options.validation.stopOnFirstInvalidFile){
                                                    return;
                                                }
                        Severity: Major
                        Found in app/assets/javascripts/app/lib/base/jquery.fineuploader-3.0.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                    if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break }
                          Severity: Major
                          Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                        if (sp.to != null && sp.to != pos && nextChange > sp.to) {
                                          nextChange = sp.to;
                                          spanEndStyle = "";
                                        }
                            Severity: Major
                            Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                          if (m.attributes) {
                                            for (var attr in m.attributes)
                                              { (attributes || (attributes = {}))[attr] = m.attributes[attr]; }
                                          }
                              Severity: Major
                              Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                          if (m.explicitlyCleared) {
                                            if (!line.markedSpans) { break }
                                            else {--i; continue}
                                          }
                                Severity: Major
                                Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                              if (sameLine) { (first || (first = [])).push(span$1); }
                                  Severity: Major
                                  Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                if (m.startStyle && sp.from == pos) { spanStartStyle += " " + m.startStyle; }
                                    Severity: Major
                                    Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                    if (pos < j$2) { order.splice(at, 0, new BidiSpan(1, pos, j$2)); at += isRTL; }
                                      Severity: Major
                                      Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                    if (m.className) { spanStyle += " " + m.className; }
                                        Severity: Major
                                        Found in app/assets/javascripts/app/lib/base/codemirror.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language