opf/openproject

View on GitHub

Showing 620 of 1,668 total issues

Avoid too many return statements within this function.
Open

        return 'not-supported';

    Avoid too many return statements within this function.
    Open

            return 'minus1';

      Avoid too many return statements within this function.
      Open

              return 'redo';

        Avoid too many return statements within this function.
        Open

          return {
            ...rebuiltDelta,
            [wpId]: predecessorPosition + distance,
          };
        Severity: Major
        Found in frontend/src/app/shared/helpers/drag-and-drop/reorder-delta-builder.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return reorderedInsert(rebuiltDelta, order, positions);
          Severity: Major
          Found in frontend/src/app/shared/helpers/drag-and-drop/reorder-delta-builder.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return [];

              Avoid too many return statements within this function.
              Open

                      return [value];
              Severity: Major
              Found in frontend/src/stimulus/controllers/dynamic/filters.controller.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                              return false;

                  Avoid too many return statements within this function.
                  Open

                          return this.parseDateFilterValue(valueContainer, filterName);
                  Severity: Major
                  Found in frontend/src/stimulus/controllers/dynamic/filters.controller.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return null;

                      Avoid too many return statements within this function.
                      Open

                          return null;
                      Severity: Major
                      Found in frontend/src/stimulus/controllers/dynamic/filters.controller.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return reorderedInsert(rebuiltDelta, order, positions);
                        Severity: Major
                        Found in frontend/src/app/shared/helpers/drag-and-drop/reorder-delta-builder.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return new cls(fieldName, context) as DisplayField;

                            Avoid too many return statements within this function.
                            Open

                                  return new DateDisplayField(fieldName, context);

                              Avoid too many return statements within this function.
                              Open

                                  return {
                                    ...rebuiltDelta,
                                    [wpId]: predecessorPosition + (ORDER_DISTANCE / 2),
                                  };
                              Severity: Major
                              Found in frontend/src/app/shared/helpers/drag-and-drop/reorder-delta-builder.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return null;

                                  Avoid too many return statements within this function.
                                  Open

                                          return Reflect.get(schema, property, receiver);
                                  Severity: Major
                                  Found in frontend/src/app/features/hal/schemas/schema-proxy.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return 'gantt';

                                      Avoid too many return statements within this function.
                                      Open

                                          return value.toString();

                                        Avoid too many return statements within this function.
                                        Open

                                                return null;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language