airbnb/caravel

View on GitHub

Showing 2,441 of 6,157 total issues

Avoid too many return statements within this function.
Open

      return (
        <Button
          buttonSize="small"
          buttonStyle="primary"
          onClick={() => fetchResults(query)}
Severity: Major
Found in superset-frontend/src/SqlLab/components/ResultSet/index.tsx - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return formattedValue.length ? formattedValue.join(', ') : '[]';
    Severity: Major
    Found in superset-frontend/src/components/AlteredSliceTag/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/utils/urlUtils.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

          return safeStringify(value);
        Severity: Major
        Found in superset-frontend/src/components/AlteredSliceTag/index.tsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return {
                ...charts,
                [action.key]: actionHandlers[action.type](charts[action.key]),
              };
          Severity: Major
          Found in superset-frontend/src/components/Chart/chartReducer.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return JSON.parse(urlParam);
            Severity: Major
            Found in superset-frontend/src/utils/urlUtils.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return urlParam;
              Severity: Major
              Found in superset-frontend/src/utils/urlUtils.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return null;
                Severity: Major
                Found in superset-frontend/src/utils/urlUtils.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return value
                        .map((v: FilterItemType) => {
                          const filterVal =
                            v.comparator && v.comparator.constructor === Array
                              ? `[${v.comparator.join(', ')}]`
                  Severity: Major
                  Found in superset-frontend/src/components/AlteredSliceTag/index.tsx - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return formattedValue.length ? formattedValue.join(', ') : '[]';
                    Severity: Major
                    Found in superset-frontend/src/components/AlteredSliceTag/index.tsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            return urlParam.toLowerCase() !== 'false' && urlParam !== '0';
                      Severity: Major
                      Found in superset-frontend/src/utils/urlUtils.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return rison.decode(urlParam);
                        Severity: Major
                        Found in superset-frontend/src/utils/urlUtils.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return `Min: ${value[0]}, Max: ${value[1]}`;
                          Severity: Major
                          Found in superset-frontend/src/components/AlteredSliceTag/index.tsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return value.map((v: FilterItemType) => safeStringify(v)).join(', ');
                            Severity: Major
                            Found in superset-frontend/src/components/AlteredSliceTag/index.tsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                return charts;
                              Severity: Major
                              Found in superset-frontend/src/components/Chart/chartReducer.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                          return previousState;
                                Severity: Major
                                Found in superset-frontend/src/components/Select/Select.tsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return null;
                                  Severity: Major
                                  Found in superset-frontend/src/utils/urlUtils.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return value;
                                    Severity: Major
                                    Found in superset-frontend/src/components/AlteredSliceTag/index.tsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                            return {
                                              ...trimmedState,
                                              extra: JSON.stringify({
                                                ...extraJson,
                                                [action.payload.name]:
                                      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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language