Chocobozzz/PeerTube

View on GitHub

Showing 1,292 of 3,313 total issues

Avoid too many return statements within this function.
Open

    return true
Severity: Major
Found in client/src/app/+admin/overview/users/user-edit/user-edit.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          return retryTransactionWrapper(processDeleteVideoPlaylist, byActor, videoPlaylist)
    Severity: Major
    Found in server/core/lib/activitypub/process/process-delete.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return undefined
      Severity: Major
      Found in server/core/lib/activitypub/process/process-delete.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return 1

          Avoid too many return statements within this function.
          Open

                    if (v === 'parent-errored') return RunnerJobState.PARENT_ERRORED
          Severity: Major
          Found in client/src/app/+admin/system/runners/runner.service.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return retryTransactionWrapper(processDeleteVideo, byActor, videoInstance)
            Severity: Major
            Found in server/core/lib/activitypub/process/process-delete.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                    return
              Severity: Major
              Found in client/src/app/+login/login.component.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return true
                Severity: Major
                Found in client/src/app/modal/account-setup-warning-modal.component.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return video
                  Severity: Major
                  Found in server/core/lib/activitypub/videos/refresh.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                      if (value === '0') return false
                    Severity: Major
                    Found in client/src/app/helpers/utils/object.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return { canDeactivate: true }
                      Severity: Major
                      Found in client/src/app/+videos/+video-edit/video-add.component.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                          return err.message
                        Severity: Major
                        Found in client/src/app/helpers/utils/upload.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              if (interval >= 1) return $localize`${interval} min ago`
                          Severity: Major
                          Found in client/src/app/shared/shared-main/date/from-now.pipe.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return
                            Severity: Major
                            Found in client/src/app/+videos/video-list/videos-list-common-page.component.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                if (value === '1') return true
                              Severity: Major
                              Found in client/src/app/helpers/utils/object.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                          return $localize`Video will begin at ${secondsToTime(start)}`
                                Severity: Major
                                Found in client/src/app/+video-studio/edit/video-studio-edit.component.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return
                                  Severity: Major
                                  Found in client/src/app/+videos/video-list/videos-list-common-page.component.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                              return
                                    Severity: Major
                                    Found in client/src/app/+videos/video-list/videos-list-common-page.component.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return formatICU($localize`{interval, plural, =1 {1 week ago} other {{interval} weeks ago}}`, { interval })
                                      Severity: Major
                                      Found in client/src/app/shared/shared-main/date/from-now.pipe.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return formatICU($localize`{interval, plural, =1 {1 hour ago} other {{interval} hours ago}}`, { interval })
                                        Severity: Major
                                        Found in client/src/app/shared/shared-main/date/from-now.pipe.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language