airbnb/caravel

View on GitHub

Showing 2,441 of 6,157 total issues

Avoid too many return statements within this function.
Open

      return {
        ...action.payload,
        masked_encrypted_extra: action.payload.masked_encrypted_extra || '',
        engine: action.payload.backend || trimmedState.engine,
        configuration_method: action.payload.configuration_method,
Severity: Major
Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      if (hasConnectedDb && !editNewDb) return hasConnectedDbHeader;
    Severity: Major
    Found in superset-frontend/src/features/databases/DatabaseModal/ModalHeader.tsx - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return {
              ...trimmedState,
              [action.payload.name]: action.payload.value,
            };
      Severity: Major
      Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                return {
                  ...trimmedState,
                  ssh_tunnel: {
                    password: trimmedState?.ssh_tunnel?.password,
                    ...ssh_tunnel,
        Severity: Major
        Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            if (db || editNewDb) return hasDbHeader;
          Severity: Major
          Found in superset-frontend/src/features/databases/DatabaseModal/ModalHeader.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              return noDbHeader;
            Severity: Major
            Found in superset-frontend/src/features/databases/DatabaseModal/ModalHeader.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return {
                        ...trimmedState,
                        ssh_tunnel: {
                          private_key: trimmedState?.ssh_tunnel?.private_key,
                          private_key_password:
              Severity: Major
              Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return {
                        ...trimmedState,
                      };
                Severity: Major
                Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return {
                          ...trimmedState,
                          catalog: [{ name: '', value: '' }],
                        };
                  Severity: Major
                  Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            return null;
                    Severity: Major
                    Found in superset-frontend/src/features/home/EmptyState.tsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                              return {
                                ...trimmedState,
                                [action.payload.name]: action.payload.checked,
                              };
                      Severity: Major
                      Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return {
                                  ...action.payload,
                                  engine: action.payload.backend || trimmedState.engine,
                                  configuration_method: action.payload.configuration_method,
                                  catalog: engineRootCatalog,
                        Severity: Major
                        Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return {
                                    ...trimmedState,
                                    extra: JSON.stringify({
                                      ...extraJson,
                                      schema_options: {
                          Severity: Major
                          Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                              return t('Unknown value');
                            Severity: Major
                            Found in superset-frontend/src/dashboard/components/nativeFilters/utils.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return {
                                      ...trimmedState,
                                      parameters: {
                                        ...trimmedState.parameters,
                                        [action.payload.name]: action.payload.value,
                              Severity: Major
                              Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return {
                                          ...trimmedState,
                                          catalog: catalogCopy,
                                          parameters: {
                                            ...trimmedState.parameters,
                                Severity: Major
                                Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return {
                                            ...trimmedState,
                                            catalog: [...trimmedState.catalog, { name: '', value: '' }],
                                          };
                                  Severity: Major
                                  Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                            return;
                                    Severity: Major
                                    Found in superset-frontend/src/features/databases/DatabaseModal/index.tsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return {
                                              tabs: topLevelTabsInFullScope
                                                .map(tabId => extractTabLabel(layout[tabId]))
                                                .filter(Boolean),
                                              charts: chartsInExcludedTabs.map(extractChartLabel).filter(Boolean),

                                        Avoid too many return statements within this function.
                                        Open

                                            return undefined;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language