Chocobozzz/PeerTube

View on GitHub

Showing 1,292 of 3,313 total issues

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

                              Avoid too many return statements within this function.
                              Open

                                return true
                              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

                                  if (fps < 2 || fps > maxFPS) 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 instanceTheme
                                  Severity: Major
                                  Found in client/src/app/core/theme/theme.service.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                          return $localize`Too many attempts, please try again 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

                                          if (!simpleObjectsDeepEqual(a[key], b[key])) return false
                                      Severity: Major
                                      Found in packages/core-utils/src/common/object.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                          return true
                                        Severity: Major
                                        Found in packages/core-utils/src/common/object.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language