portainer/portainer

View on GitHub

Showing 1,516 of 3,440 total issues

Avoid too many return statements within this function.
Open

            return createError({
              message:
                "Name (the segment after a slash (/), or only segment if no slash) can't exceed 63 characters.",
            });
Severity: Major
Found in app/react/kubernetes/annotations/validation.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                return createError({
                  message:
                    'Start and end with alphanumeric characters only, limiting characters in between to dashes, underscores, and alphanumerics.',
                });
    Severity: Major
    Found in app/react/kubernetes/annotations/validation.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return true;
      Severity: Major
      Found in app/react/kubernetes/annotations/validation.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

          return {
            authorized: hasAuthorizations(user, authorizations, envQuery.data?.Id),
            isLoading: false,
          };
        Severity: Major
        Found in app/react/hooks/useUser.tsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            return <IconComponent className={classes} aria-hidden="true" />;
          Severity: Major
          Found in app/react/components/Icon.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              return '';
            Severity: Major
            Found in app/react/components/ImageConfigFieldset/SimpleForm.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      if (a.length > b.length) return 1;

                Avoid too many return statements within this function.
                Open

                      if (portA < portB) return -1;

                  Avoid too many return statements within this function.
                  Open

                    return 'default';
                  Severity: Major
                  Found in app/docker/filters/utils.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

                              if (a.length > b.length) return 1;

                        Avoid too many return statements within this function.
                        Open

                              return ipA.localeCompare(
                                ipB,
                                navigator.languages[0] || navigator.language,
                                {
                                  numeric: true,

                          Avoid too many return statements within this function.
                          Open

                                return portA.localeCompare(
                                  portB,
                                  navigator.languages[0] || navigator.language,
                                  {
                                    numeric: true,

                            Avoid too many return statements within this function.
                            Open

                                    return 0;

                              Avoid too many return statements within this function.
                              Open

                                    if (ipB === 'None') return -1;

                                Avoid too many return statements within this function.
                                Open

                                      if (portA > portB) return 1;

                                  Avoid too many return statements within this function.
                                  Open

                                    return '-';

                                    Avoid too many return statements within this function.
                                    Open

                                      return null;

                                      Avoid too many return statements within this function.
                                      Open

                                            return 0;

                                        Avoid too many return statements within this function.
                                        Open

                                            return 'success';
                                        Severity: Major
                                        Found in app/docker/filters/utils.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language