puffer/puffer_pages

View on GitHub

Showing 177 of 219 total issues

Avoid too many return statements within this function.
Open

        return chain(stream, state, jsTokenComment);
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

                      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

              else return lexical.indented + (closing ? 0 : 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

                          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

            Avoid too many return statements within this function.
            Open

                        return null;
            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("comment", "comment");
              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("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

                          return "meta";
                  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

                        if (type == "for") return cont(pushlex("form"), expect("("), pushlex(")"), forspec1, expect(")"),
                                                          poplex, statement, 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 (!tagName) return "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 "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("keyword", "important");
                            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("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

                                    if (type == "variable") return cont(pushlex("stat"), maybelabel);
                                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("property", "variable");
                                  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 true;
                                    Severity: Major
                                    Found in app/assets/javascripts/puffer/codemirror.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 ret("qualifier", "qualifier");
                                        Severity: Major
                                        Found in app/assets/javascripts/puffer/codemirror/css.js - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language