digitalfabrik/integreat-app

View on GitHub

Showing 156 of 190 total issues

Avoid too many return statements within this function.
Open

      return
Severity: Major
Found in native/src/hooks/useNavigate.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return <Layout>{children}</Layout>
    Severity: Major
    Found in native/src/routes/LoadingErrorHandler.tsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return
      Severity: Major
      Found in native/src/hooks/useNavigate.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return
        Severity: Major
        Found in native/src/hooks/useNavigate.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            return (
              <CityContentLayout isLoading={false} {...locationLayoutParams}>
                <Helmet pageTitle={pageTitle} languageChangePaths={languageChangePaths} cityModel={city} />
                <NewsTabs
                  type={LOCAL_NEWS_TYPE}
          Severity: Major
          Found in web/src/routes/LocalNewsPage.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return
            Severity: Major
            Found in native/src/hooks/useNavigate.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                return event1.title.localeCompare(event2.title)
              Severity: Major
              Found in shared/api/endpoints/createEventsEndpoint.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                  return (
                    <AspectRatioImage
                      source={cachedSource}
                      resizeMode={resizeMode}
                      style={style}
                Severity: Major
                Found in native/src/components/SimpleImage.tsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return
                  Severity: Major
                  Found in native/src/hooks/useNavigate.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                      return (
                        <CityContentLayout isLoading={false} {...locationLayoutParams}>
                          <Helmet pageTitle={pageTitle} languageChangePaths={languageChangePaths} cityModel={city} />
                          <Caption title={t('events')} />
                          <List noItemsMessage={t('currentlyNoEvents')} items={events} renderItem={renderEventListItem} />
                    Severity: Major
                    Found in web/src/routes/EventsPage.tsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        return (
                          <CityContentLayout isLoading={false} {...locationLayoutParams}>
                            <Helmet
                              pageTitle={pageTitle}
                              metaDescription={metaDescription}
                      Severity: Major
                      Found in web/src/routes/CategoriesPage.tsx - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return
                        Severity: Major
                        Found in native/ios/Integreat/fetcher/FetcherModule.swift - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return (
                                <LayoutedScrollView refreshControl={<RefreshControl onRefresh={refresh} refreshing={false} />}>
                                  {children}
                                </LayoutedScrollView>
                              )
                          Severity: Major
                          Found in native/src/routes/LoadingErrorHandler.tsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return
                            Severity: Major
                            Found in native/ios/Integreat/fetcher/FetcherModule.swift - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return constructPathname([cityCode, languageCode, routeInformation.route, newsType, newsId?.toString()])
                              Severity: Major
                              Found in shared/routes/pathname.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                  return ErrorCode.UnknownError
                                Severity: Major
                                Found in shared/api/ErrorCodes.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                      return
                                  Severity: Major
                                  Found in native/src/hooks/useNavigate.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return (
                                          <LayoutedScrollView refreshControl={<RefreshControl onRefresh={refresh} refreshing={false} />}>
                                            <Failure buttonAction={buttonAction} code={errorCode} buttonLabel={buttonLabel} />
                                          </LayoutedScrollView>
                                        )
                                    Severity: Major
                                    Found in native/src/routes/LoadingErrorHandler.tsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                        return (
                                          <CityContentLayout isLoading={false} {...locationLayoutParams}>
                                            <Helmet pageTitle={pageTitle} languageChangePaths={languageChangePaths} cityModel={city} />
                                            <NewsTabs
                                              type={TU_NEWS_TYPE}
                                      Severity: Major
                                      Found in web/src/routes/TuNewsPage.tsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return
                                        Severity: Major
                                        Found in native/src/hooks/useNavigate.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language