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 $q.when(item);
Severity: Major
Found in scripts/apps/workspace/content/services/ContentService.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return true;
    Severity: Major
    Found in scripts/api/article.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                                  return (
                                      <BaseHistoryItem items={historyItems} current={i} key={i}>
                                          <div>
                                              {gettext(
                                                  'Marked for highlight {{x}} by {{user}}',

        Avoid too many return statements within this function.
        Open

                                    return (
                                        <BaseHistoryItem items={historyItems} current={i} key={i}>
                                            <div>
                                                {gettext('Linked by {{user}}', {user: item.displayName})}
                                            </div>

          Avoid too many return statements within this function.
          Open

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

            Avoid too many return statements within this function.
            Open

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

              Avoid too many return statements within this function.
              Open

                                          return (
                                              <BaseHistoryItem items={historyItems} current={i} key={i}>
                                                  <div>
                                                      {gettext(
                                                          'Created from highlight({{x}}) by {{user}}',

                Avoid too many return statements within this function.
                Open

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

                  Avoid too many return statements within this function.
                  Open

                          return privileges.userHasPrivileges({personal_template: 1}); // can edit templates of other users
                  Severity: Major
                  Found in scripts/apps/authoring-react/toolbar/template-helpers.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

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

                      Avoid too many return statements within this function.
                      Open

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

                        Avoid too many return statements within this function.
                        Open

                                                    return (
                                                        <BaseHistoryItem items={historyItems} current={i} key={i}>
                                                            <div>
                                                                {gettext(
                                                                    'Unmarked from highlight({{x}}) by {{user}}',

                          Avoid too many return statements within this function.
                          Open

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

                            Avoid too many return statements within this function.
                            Open

                                                        return (
                                                            <BaseHistoryItem items={historyItems} current={i} key={i}>
                                                                <div>
                                                                    {gettext(
                                                                        'Marked for desk {{x}} by {{user}}',

                              Avoid too many return statements within this function.
                              Open

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

                                Avoid too many return statements within this function.
                                Open

                                                            return (
                                                                <BaseHistoryItem items={historyItems} current={i} key={i}>
                                                                    <div>
                                                                        {gettext(
                                                                            'Unmarked from desk({{x}}) by {{user}}',

                                  Avoid too many return statements within this function.
                                  Open

                                                              return null;

                                    Avoid too many return statements within this function.
                                    Open

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

                                      Avoid too many return statements within this function.
                                      Open

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

                                        Avoid too many return statements within this function.
                                        Open

                                                                    return (
                                                                        <BaseHistoryItem items={historyItems} current={i} key={i}>
                                                                            <div>
                                                                                <strong>{gettext('Spiked by')}</strong>
                                                                                &nbsp;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language