Chocobozzz/PeerTube

View on GitHub

Showing 3,313 of 3,313 total issues

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

              Avoid too many return statements within this function.
              Open

                    return ''
              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 true
                Severity: Major
                Found in client/src/app/+videos/+video-edit/video-update.component.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return formatICU($localize`{interval, plural, =1 {1 day ago} other {{interval} days 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

                      Avoid too many return statements within this function.
                      Open

                                return $localize`Video will stop at ${secondsToTime(end)}`
                      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 undefined
                        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 this.videoStudioService.editVideo(this.video.uuid, tasks)
                                .subscribe({
                                  next: () => {
                                    this.notifier.success($localize`Edition tasks created.`)
                          
                          
                          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 $localize`just now`
                            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

                                if (!channelLayout || channelLayout === 'unknown' || channelLayout === 'quad') return false
                              Severity: Major
                              Found in packages/ffmpeg/src/ffmpeg-default-transcoding-profile.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                      return $localize`Server is unavailable. Please retry later.`
                                Severity: Major
                                Found in client/src/app/core/rest/rest-extractor.service.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                        return $localize`Server error. Please retry later.`
                                  Severity: Major
                                  Found in client/src/app/core/rest/rest-extractor.service.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                                        return t
                                    Severity: Major
                                    Found in client/src/app/core/rest/rest.service.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return date.toLocaleTimeString([], { hour: 'numeric', minute: 'numeric' })
                                      Severity: Major
                                      Found in client/src/app/+stats/video/video-stats.component.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return $localize`Unknown server error`
                                        Severity: Major
                                        Found in client/src/app/core/rest/rest-extractor.service.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language