superdesk/superdesk-client-core

View on GitHub

Showing 3,654 of 3,654 total issues

Avoid too many return statements within this function.
Open

                            return (
                                <BaseHistoryItem items={historyItems} current={i} key={i}>
                                    <div>
                                        <strong>{gettext('Exported by')}</strong>
                                        &nbsp;

    Avoid too many return statements within this function.
    Open

                                return (
                                    <BaseHistoryItem items={historyItems} current={i} key={i}>
                                        <strong>
                                            {getOperationLabel(item.operation, item.update.state)} {item.displayName}
                                        </strong>

      Avoid too many return statements within this function.
      Open

                                  return (
                                      <BaseHistoryItem items={historyItems} current={i} key={i}>
                                          <div>
                                              {gettext(
                                                  'Unlinked by {{user}}',

        Avoid too many return statements within this function.
        Open

                        return;
        Severity: Major
        Found in scripts/apps/authoring-react/fields/media/editor.tsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                          return -1;
          Severity: Major
          Found in scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return assertNever(sort.direction);
            Severity: Major
            Found in scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                              return 0;
              Severity: Major
              Found in scripts/apps/vocabularies/components/VocabularyItemsViewEdit.tsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                                    return Promise.resolve({error: {isAllowedFileType: false}});
                Severity: Major
                Found in scripts/apps/archive/controllers/UploadController.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                  return Promise.resolve({error: {isAllowedFileType: false}});
                  Severity: Major
                  Found in scripts/apps/archive/controllers/UploadController.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                    return Promise.resolve({
                                        file: file,
                                        getThumbnail: () => Promise.resolve('<i class="icon--2x icon-audio"></i>'),
                                    });
                    Severity: Major
                    Found in scripts/apps/archive/controllers/UploadController.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                          return gettext('{{field}} cannot be earlier than now!', {field: fieldName});
                      Severity: Major
                      Found in scripts/apps/authoring/authoring/directives/AuthoringDirective.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return cv;
                        Severity: Major
                        Found in scripts/apps/authoring/media/media-fields-controller.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return this._updateDeskActions(currentItem, action, userDesks || self.userDesks);
                          Severity: Major
                          Found in scripts/apps/authoring/authoring/services/AuthoringService.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return gettext('Publish');
                            Severity: Major
                            Found in scripts/core/interactive-article-actions-panel/index-ui.tsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return (
                                              <PanelWithHeader>
                                                  <SendToTab
                                                      items={items}
                                                      closeSendToView={onClose}
                              Severity: Major
                              Found in scripts/core/interactive-article-actions-panel/index-ui.tsx - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return gettext('Publish');
                                Severity: Major
                                Found in scripts/core/interactive-article-actions-panel/index-ui.tsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return (
                                                  <PanelWithHeader>
                                                      <FetchToTab
                                                          items={items}
                                                          closeFetchToView={onClose}
                                  Severity: Major
                                  Found in scripts/core/interactive-article-actions-panel/index-ui.tsx - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return (
                                                    <PanelWithHeader>
                                                        <DuplicateToTab
                                                            items={items}
                                                            closeDuplicateToView={onClose}
                                    Severity: Major
                                    Found in scripts/core/interactive-article-actions-panel/index-ui.tsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return assertNever(activeTab);
                                      Severity: Major
                                      Found in scripts/core/interactive-article-actions-panel/index-ui.tsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return (
                                                        <PanelWithHeader>
                                                            <UnspikeTab
                                                                items={items}
                                                                closeUnspikeView={onClose}
                                        Severity: Major
                                        Found in scripts/core/interactive-article-actions-panel/index-ui.tsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language