Chocobozzz/PeerTube

View on GitHub

Showing 3,313 of 3,313 total issues

Avoid too many return statements within this function.
Open

    return retryTransactionWrapper(processCreateCacheFile, activity, activityObject, byActor)
Severity: Major
Found in server/core/lib/activitypub/process/process-create.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      if (ownerAccountTags.length === 0) return false
    Severity: Major
    Found in server/core/lib/video-comment.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            else if (!isUUIDValid(o.live.streamKey)) return undefined
      Severity: Major
      Found in server/core/lib/user-import-export/importers/videos-importer.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                  if (v === 'waiting-for-parent-job') return RunnerJobState.WAITING_FOR_PARENT_JOB
        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 videoPlaylist
          Severity: Major
          Found in server/core/lib/activitypub/playlists/refresh.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

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