bookbrainz/bookbrainz-site

View on GitHub

Showing 365 of 1,033 total issues

Avoid too many return statements within this function.
Open

    return null;
Severity: Major
Found in src/server/routes/revision.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return {errorMessage: 'Day is not valid', isValid: false};
    Severity: Major
    Found in src/client/entity-editor/validators/date.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

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

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