bookbrainz/bookbrainz-site

View on GitHub

Showing 1,033 of 1,033 total issues

Avoid too many return statements within this function.
Open

            return next(error);
Severity: Major
Found in src/server/routes/merge.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return next(conflictError);
    Severity: Major
    Found in src/server/routes/merge.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return res.send(targetTemplate({
                  markup,
                  props: escapeProps(props),
                  script: '/js/entity-editor.js',
                  title: `Merge ${mergingFetchedEntities.length} ${_.startCase(entityType)}s`
      Severity: Major
      Found in src/server/routes/merge.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return getTypeCreation(new PublisherRevision(), 'publisher_revision', editorId);
        Severity: Major
        Found in src/server/routes/editor.tsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return getEntityVisits(orm, editorId);
          Severity: Major
          Found in src/server/routes/editor.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return getTypeCreation(new SeriesRevision(), 'series_revision', editorId);
            Severity: Major
            Found in src/server/routes/editor.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return next();
              Severity: Major
              Found in src/server/helpers/middleware.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return false;
                Severity: Major
                Found in src/client/entity-editor/validators/base.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return next();
                  Severity: Major
                  Found in src/server/helpers/middleware.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return 0;
                    Severity: Major
                    Found in src/server/routes/editor.tsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return res.redirect(req.headers.referer);
                      Severity: Major
                      Found in src/server/routes/merge.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return state;
                        Severity: Major
                        Found in src/client/entity-editor/identifier-editor/reducer.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return getConsecutiveDaysWithEdits(orm, editorId, 29);
                          Severity: Major
                          Found in src/server/routes/editor.tsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return getTypeCreation(new WorkRevision(), 'work_revision', editorId);
                            Severity: Major
                            Found in src/server/routes/editor.tsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return true;
                              Severity: Major
                              Found in src/client/entity-editor/validators/base.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return false;
                                Severity: Major
                                Found in src/client/entity-editor/validators/base.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return true;
                                  Severity: Major
                                  Found in src/client/entity-editor/validators/base.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return out.rowCount;
                                    Severity: Major
                                    Found in src/server/routes/editor.tsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                              return getConsecutiveDaysWithEdits(orm, editorId, 6);
                                      Severity: Major
                                      Found in src/server/routes/editor.tsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return 'Unnamed';
                                        Severity: Major
                                        Found in src/client/helpers/entity.tsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language