bookbrainz/bookbrainz-site

View on GitHub

Showing 1,033 of 1,033 total issues

Avoid too many return statements within this function.
Open

            return {errorMessage: 'Year is not leap, invalid day', 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 [];
    Severity: Major
    Found in src/server/helpers/diffFormatters/entity.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return {errorMessage: 'Month 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 formatNewDisambiguation(change);
        Severity: Major
        Found in src/server/helpers/diffFormatters/entity.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return null;
          Severity: Major
          Found in src/server/helpers/diffFormatters/entity.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    return baseFormatter.formatTypeChange(change, 'Author Type');
            Severity: Major
            Found in src/server/routes/revision.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return baseFormatter.formatAreaChange(change);
              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: '', isValid: true};
                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 {errorMessage: 'Day is not valid for this month', 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 baseFormatter.formatTypeChange(change, 'Edition Status');
                    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: 'Month must be entered if day is entered', 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 {errorMessage: '', isValid: true};
                        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 formatChangedDisambiguation(change);
                          Severity: Major
                          Found in src/server/helpers/diffFormatters/entity.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return formatAddOrDeleteRelationshipSet(entity, change);
                            Severity: Major
                            Found in src/server/helpers/diffFormatters/entity.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                      return baseFormatter.formatTypeChange(change, 'Edition Format');
                              Severity: Major
                              Found in src/server/routes/revision.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return baseFormatter.formatAreaChange(change, 'Begin Area');
                                Severity: Major
                                Found in src/server/routes/revision.js - About 30 mins to fix

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