jbox-web/redmine_bootstrap_kit

View on GitHub

Showing 278 of 361 total issues

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

  function buildToken(builder, text, style, startStyle, endStyle, title) {
Severity: Minor
Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                if (widget.node == n.firstChild) {
                  if (!widget.above && !insertBefore) insertBefore = n;
                  positionLineWidget(widget, n, reuse, dims);
                  ++widgetsSeen;
                  break;
    Severity: Major
    Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                      switch(selectedCharacter){
                        case '<CR>':
                          selectedCharacter='\n';
                          break;
                        case '<Space>':
      Severity: Major
      Found in assets/javascripts/codemirror/keymap/vim.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                  if (search.lineObj == line && /div/i.test(search.nodeName)) { reuse = search; break; }
        Severity: Major
        Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

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

            function runMode(cm, text, mode, state, f, forceToEnd) {
          Severity: Minor
          Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                      } else if (sp.from > pos && nextChange > sp.from) {
                        nextChange = sp.from;
                      }
            Severity: Major
            Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          if (/pre/i.test(prev.nodeName)) {
                            var wrap = elt("div", null, null, "position: relative");
                            prev.parentNode.replaceChild(wrap, prev);
                            wrap.appendChild(prev);
                            prev = wrap;
              Severity: Major
              Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                            if (!w.handleMouseEvents) wnode.ignoreEvents = true;
                Severity: Major
                Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

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

                    Avoid deeply nested control flow statements.
                    Open

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

                      Avoid deeply nested control flow statements.
                      Open

                                    for (++j; j < i && countsAsNum.test(types[j]); ++j) {}
                      Severity: Major
                      Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

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

                              yank: function(cm, operatorArgs, _vim, curStart, curEnd, curOriginal) {
                        Severity: Minor
                        Found in assets/javascripts/codemirror/keymap/vim.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                          if (selectionEnd.line > lastLine) {
                                            selectionEnd.line = lastLine;
                                          }
                          Severity: Major
                          Found in assets/javascripts/codemirror/keymap/vim.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                          if (wordStart == cur.ch && lineNum == cur.line &&
                                              wordEnd == wordStart + dir) {
                                            // We started at the end of a word. Find the next one.
                                            continue;
                                          } else {
                            Severity: Major
                            Found in assets/javascripts/codemirror/keymap/vim.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                          if (posEq(newPos, curPos)) {
                                            newPos.ch += dir;
                                            if (newPos.ch < 0) {
                                              if (newPos.line > doc.first) newPos = clipPos(doc, Pos(newPos.line - 1));
                                              else newPos = null;
                              Severity: Major
                              Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                            if (oldCur[k].marker == span.marker) continue spans;
                                Severity: Major
                                Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                          if (widgets) for (var i = 0; i < widgets.length; ++i)
                                            widgets[i].height = widgets[i].node.offsetHeight;
                                  Severity: Major
                                  Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                            if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\d+)$/)) {
                                              if (indexOf(newGroup, Number(m[1])) > -1) {
                                                lst(newChanges)[prop] = change[prop];
                                                delete change[prop];
                                              }
                                    Severity: Major
                                    Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                    if (pos < j) order.splice(at, 0, {from: pos, to: j, level: 1});
                                      Severity: Major
                                      Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                              if (stream.eat(/[\<\>]/)) {
                                                stream.eat(/[\<\>]/);
                                                return "atom";
                                              }
                                        Severity: Major
                                        Found in assets/javascripts/codemirror/mode/ruby/ruby.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language