puffer/puffer_pages

View on GitHub

Showing 219 of 219 total issues

Avoid too many return statements within this function.
Open

        return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? indentUnit : 0);
Severity: Major
Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return ret("number", "unit");
    Severity: Major
    Found in app/assets/javascripts/puffer/codemirror/css.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return ret("regexp", "string-2");
      Severity: Major
      Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            if (type == ";") return cont();
        Severity: Major
        Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              if (type == "function") return cont(functiondef);
          Severity: Major
          Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return ret(null, "select-op");
            Severity: Major
            Found in app/assets/javascripts/puffer/codemirror/css.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  if (type == "switch") return cont(pushlex("form"), expression, pushlex("}", "switch"), expect("{"),
                                                       block, poplex, poplex);
              Severity: Major
              Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    if (type == ".") return cont(property, maybeoperator);
                Severity: Major
                Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      if (type == "default") return cont(expect(":"));
                  Severity: Major
                  Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                    if (stream.match(/^\s*(\||\>)\s*/)) { state.literal = true; return 'meta'; };
                    Severity: Major
                    Found in app/assets/javascripts/puffer/codemirror/yaml.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          if (type == "operator") return cont(expression);
                      Severity: Major
                      Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return ret("error", "error");
                        Severity: Major
                        Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return cont();
                          Severity: Major
                          Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                if (type == "{") return cont(pushlex("}"), commasep(objprop, "}"), poplex, maybeoperator);
                            Severity: Major
                            Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  if (!start) {if (e_target(e) == display.scroller) e_preventDefault(e); return;}
                              Severity: Major
                              Found in app/assets/javascripts/puffer/codemirror.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    if (type == "[") return cont(pushlex("]"), expression, expect("]"), poplex, maybeoperator);
                                Severity: Major
                                Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        else if (type == "form") return lexical.indented + indentUnit;
                                  Severity: Major
                                  Found in app/assets/javascripts/puffer/codemirror/javascript.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            else return null;
                                    Severity: Major
                                    Found in app/assets/javascripts/puffer/codemirror/xml.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return state.tokenize(stream, state);
                                      Severity: Major
                                      Found in app/assets/javascripts/puffer/codemirror/css.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return ret("property", "variable");
                                        Severity: Major
                                        Found in app/assets/javascripts/puffer/codemirror/css.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language