puffer/puffer_pages

View on GitHub

Showing 177 of 219 total issues

Avoid too many return statements within this function.
Open

    if (type == "case") return cont(expression, 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

        return pass(pushlex("stat"), expression, expect(";"), 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

            else if (lexical.align) return lexical.column + (closing ? 0 : 1);
      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 (state.pair && stream.match(/^:\s*/)) { state.pairStart = 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

                return (known && state.lastType != ".") ? ret(known.type, known.style, word) :
                               ret("variable", "variable", word);
          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 "tag";
              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 ok ? "atom" : "error";
                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 ret("meta", "meta");
                  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 '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

                              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(pushlex("]"), commasep(expression, "]"), 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

                                  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

                                            if (stream.match(/\s*-\s+/)) { 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

                                    return ret("operator", null, stream.current());
                              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 == "catch") return cont(pushlex("form"), pushcontext, expect("("), funarg, expect(")"),
                                                                        statement, poplex, popcontext);
                                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 == "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("atom", "hash");
                                    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 lookup(fallthrough);
                                      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 (state.inlinePairs > 0 && stream.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)) { return 'number'; }
                                        Severity: Major
                                        Found in app/assets/javascripts/puffer/codemirror/yaml.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language