jbox-web/redmine_bootstrap_kit

View on GitHub

Showing 361 of 361 total issues

Avoid deeply nested control flow statements.
Open

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

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

          swapcase: 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 (m.startStyle && sp.from == pos) spanStartStyle += " " + m.startStyle;
      Severity: Major
      Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                    if (m.title && !title) title = m.title;
        Severity: Major
        Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                      if (m.className) spanStyle += " " + m.className;
          Severity: Major
          Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                        if (!m.atomic) continue;
            Severity: Major
            Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          if (m.endStyle && sp.to == nextChange) spanEndStyle += " " + m.endStyle;
              Severity: Major
              Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                            if (m.collapsed && (!collapsed || collapsed.marker.size < m.size))
                              collapsed = sp;
                Severity: Major
                Found in assets/javascripts/codemirror/codemirror.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                while (pos != stop && regexps[i].test(line.charAt(pos))) {
                                  pos += dir;
                                }
                  Severity: Major
                  Found in assets/javascripts/codemirror/keymap/vim.js - About 45 mins to fix

                    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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language