JohnCoates/Aerial

View on GitHub

Showing 376 of 1,136 total issues

Avoid too many return statements within this function.
Open

                return videos
                    .filter({ !$0.isAvailableOffline && !PrefsVideos.hidden.contains($0.id) })
                    .sorted { $0.secondaryName < $1.secondaryName }
Severity: Major
Found in Aerial/Source/Models/Sources/VideoList.swift - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                        return parseVideoManifest(jsondata)
    Severity: Major
    Found in Aerial/Source/Models/Sources/Source.swift - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return .hidden
      Severity: Major
      Found in Aerial/Source/Models/Sources/VideoList.swift - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return .favorite
        Severity: Major
        Found in Aerial/Source/Models/Sources/VideoList.swift - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                          return videos
                              .filter({ $0.isAvailableOffline && !PrefsVideos.hidden.contains($0.id) })
                              .sorted { $0.secondaryName < $1.secondaryName }
          Severity: Major
          Found in Aerial/Source/Models/Sources/VideoList.swift - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return .rotation
            Severity: Major
            Found in Aerial/Source/Models/Sources/VideoList.swift - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return .beach
              Severity: Major
              Found in Aerial/Source/Models/Sources/SourceInfo.swift - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return (false, nil)
                Severity: Major
                Found in Aerial/Source/Models/Sources/SourceInfo.swift - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return calendar.date(from: components)
                  Severity: Major
                  Found in Aerial/Source/Models/Time/Solar.swift - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return (false, nil)
                    Severity: Major
                    Found in Aerial/Source/Models/ManifestLoader.swift - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return []
                      Severity: Major
                      Found in Aerial/Source/Models/Sources/Source.swift - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                        return getURL(string: urls[.v1080pH264]!)
                        Severity: Major
                        Found in Aerial/Source/Models/AerialVideo.swift - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return shuffled.first!
                          Severity: Major
                          Found in Aerial/Source/Models/Sources/VideoList.swift - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                            return getURL(string: urls[.v4KHDR]!)
                            Severity: Major
                            Found in Aerial/Source/Models/AerialVideo.swift - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return .source
                              Severity: Major
                              Found in Aerial/Source/Models/Sources/VideoList.swift - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return "day"
                                Severity: Major
                                Found in Aerial/Source/Models/Time/Solar.swift - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return nil
                                  Severity: Major
                                  Found in Aerial/Source/Models/Sources/VideoList.swift - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return Aerial.helper.getAccentedSymbol("helm")
                                    Severity: Major
                                    Found in Aerial/Source/Models/Sources/Sidebar.swift - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return Aerial.helper.getAccentedSymbol("wrench.and.screwdriver")
                                      Severity: Major
                                      Found in Aerial/Source/Models/Sources/Sidebar.swift - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                        return .v1080pH264
                                        Severity: Major
                                        Found in Aerial/Source/Models/Hardware/HardwareDetection.swift - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language